Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing Tx 0x07805c2bf5abaf4fe0eb1db7b7be0486a14757b4bf96634c828d11c07e4a763c #8

Open
fmoletta opened this issue Jun 13, 2024 · 0 comments

Comments

@fmoletta
Copy link
Member

Error:

This transaction fails with the revert error: "Transaction execution has failed:\n0: Error in the called contract (contract address: 0x05897662ae996ca4fb8d8a431f6a2a2d3e7033241316bd8f668ec77a5c878330, class hash: 0x029927c8af6bccf3f6fda035981e765a7bdbf18a2dc0d630494f8758aa908e2b, selector: 0x015d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad):\nNative execution error: argent/multicall-failed\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u{1}Error at pc=0:10:\nGot an exception while executing a hint: Native execution error: Failed to deserialize param #1\nCairo traceback (most recent call last):\nUnknown location (pc=0:430)\nUnknown location (pc=0:416)\n\n"

Investigation Status:

The contract succesfully passes the __validate__ entrypoint, returning VALID, executes the first approve call, but fails when calling the multi_route_swap function.
The CallEntryPoint created to execute the multi_route_swap is the same when executing with native and vm, inculding the called contract's address, selector and calldata (and these match the network data too).
Contracts with signatures similar to the multi_route_swap have been tested to work properly with standalone native. I also did a quick test with passing large nested arrays and those worked fine too.

Relevant links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant