[Dev Tools] cast run/trace does not seem to work with EVM contracts #1030
-
Team or ProjectAbstract ZK chainAbstract EnvironmentMainnet Select the Dev Tool you are usingFoundry Provide the version of the tool (if applicable)cast Version: 1.0.0-foundry-zksync-v0.0.16 Commit SHA: d94da1c47b312741a505fcba82c401c5e43896c2 Provide a brief description of the functionality you're trying to implement and the issue you are running into.cast run/trace does not generate traces when transactions interact with EVM bytecode contracts:
Repo Link (Optional)No response Additional DetailsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Some other examples here: Example calls: anvil-zksync -vv replay_tx --fork-url $ABSTRACT 0x2a1e791883da001ba26c76ef77bb4d8d036ae669fc73ebef3bdddc1d32880e06
cast run 0x2a1e791883da001ba26c76ef77bb4d8d036ae669fc73ebef3bdddc1d32880e06 -r $ABSTRACT --zksync
cast call 0xAA230C2A3DA79035171ce8e9c0a0778D904534Ec 0xb00b1e5000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000009400000000000000000000000000bceda01e142ba9f61592c2c770d02173ae220350000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000df8dc877e2c4000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000068f116a894984e2db1123eb3950000000000000000000000005fedb9a131f798e986109dd89942c17c25c81de300000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000076000000000000000000000000000000000000000000000000000000000000006e4e7acab24000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000006c061159fefdfada89302ed55f8b9e89e2d67d8258712b3a3f89aa88525877f1d5e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000052000000000000000000000000000000000000000000000000000000000000005800000000000000000000000000fe2d60c63dbcc370db161efca18d0707821ffa7000000000000000000000000000056f7000000ece9003ca63978907a00ffd10000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000683ee82700000000000000000000000000000000000000000000000000000000684039a700000000000000000000000000000000000000000000000000000000000000003d958fe200000000000000000000000000000000000000009752c20caa553d3461159fefdfada89302ed55f8b9e89e2d67d8258712b3a3f89aa88525877f1d5e0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000005fedb9a131f798e986109dd89942c17c25c81de300000000000000000000000000000000000000000000000000000000000017eb000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026307fe66eb6000000000000000000000000000000000000000000000000000026307fe66eb60000000000000000000000000000fe2d60c63dbcc370db161efca18d0707821ffa700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000033ba3e2bee00000000000000000000000000000000000000000000000000000033ba3e2bee0000000000000000000000000000000a26b00c1f0df003000390027140000faa71900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000205466db74c00000000000000000000000000000000000000000000000000000205466db74c0000000000000000000000000009995d38fe4f87c806ebf1c45046af3a6c612fc090000000000000000000000000000000000000000000000000000000000000040ae0b6f9d7806feb3bf01d7a3afdcfc127d92b523b60ca85325257c2673454fd25efb65e1bf027fcd2d9a824ee7a2d401d289e74766680c0a1c4fd326c12e9531000000000000000000000000000000000000000000000000000000000000009200aa230c2a3da79035171ce8e9c0a0778d904534ec00000000683ee95c366dded4dd7c91d3c327d063e0bfe70ece0a5d560ab28a683c977cb591982c4de26f9e106808c651d26da9c0d9168ec84ba697810a8b33df8586b5e3d1c00fa30800000000000000000000000000000000000000000000000000000000000000003203c3f64312af9344e42ef8aa45b97c9dfe45940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006423b872dd000000000000000000000000aa230c2a3da79035171ce8e9c0a0778d904534ec0000000000000000000000000bceda01e142ba9f61592c2c770d02173ae2203500000000000000000000000000000000000000000000000000000000000017eb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000002869809251f00000000000000000000000000000000000000000000000000000000000000000000 -f 0x7D79Bd0E4B3dC90665A3ed30Aa6C6c06c89D224E -r $ABSTRACT --trace For what it's worth, the transaction in question ran OOG in reality, but foundry is unable to reproduce that and fails regardless of gas limit. |
Beta Was this translation helpful? Give feedback.
-
So here's what I have so far, still working on a larger resolution:
|
Beta Was this translation helpful? Give feedback.
-
I will investigate to see how we can support this action. It's obviously necessary to me so will look into supporting. |
Beta Was this translation helpful? Give feedback.
-
@coffeexcoin fix inbound: matter-labs/foundry-zksync#1071 Tracing from provided tx hash
|
Beta Was this translation helpful? Give feedback.
-
Released in: https://github.com/matter-labs/foundry-zksync/releases/tag/foundry-zksync-v0.0.19 |
Beta Was this translation helpful? Give feedback.
@coffeexcoin fix inbound: matter-labs/foundry-zksync#1071
Tracing from provided tx hash