-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
bug(cast run
): local execution of transaction on BSC fails even though transaction originally succeeded on-chain
#2997
Comments
In my environment, a more detailed trace is shown, but it is weird because the transaction is successful but shows OutOfGas. The RPC used is Quicknode.
|
able to reproduce this result https://bscscan.com/tx/0xaa081672f7ad60e49000cb3520df1dce395d55d59ea31918adca41408f7fe28f indeed shows the transaction was succesful requires further investigation |
cast run
): local execution of transaction on BSC fails even though transaction originally succeeded on-chain
As a sanity check, was able to run a random recent transaction on BSC |
Today, I also met this problem. I wanna transfer token ,but it report outofgas. |
cast run
produces incorrect simulation of Arbitrum transaction (succeeds where it should fail)
#7514
the problem here is that we're simulating tx with a different EVM version than chain's at the time tx happened, if passing cast run 0xaa081672f7ad60e49000cb3520df1dce395d55d59ea31918adca41408f7fe28f --rpc-url https://rpc.ankr.com/bsc --evm-version istanbul
Traces:
[29471] 0x55d398326f99059fF775485246999027B3197955::transfer(0x085747A5B761AB8682Be10F2597674e8AA688C66, 22000000000000000000 [2.2e19])
├─ emit Transfer(param0: 0xd9fcDa91103C9D082518350c1d2a437DA8C4f7d4, param1: 0x085747A5B761AB8682Be10F2597674e8AA688C66, param2: 22000000000000000000 [2.2e19])
└─ ← [Return] 0x0000000000000000000000000000000000000000000000000000000000000001
This is a broader issue (and affects test/script executions too) which we're going to address by autodetecting EVM version. |
same as #8446 we're going to close this one as dupe and track fix in 8446. thank you! |
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (307576d 2022-08-29T00:05:05.72678Z)
What command(s) is the bug in?
cast run
Operating System
No response
Describe the bug
Regarding this tx in bsc chain,
command
produced an unexpected result
while both
cast tx 0xaa081672f7ad60e49000cb3520df1dce395d55d59ea31918adca41408f7fe28f --rpc-url https://rpc.ankr.com/bsc
andcast receipt 0xaa081672f7ad60e49000cb3520df1dce395d55d59ea31918adca41408f7fe28f --rpc-url https://rpc.ankr.com/bsc
produced expected result.The text was updated successfully, but these errors were encountered: