-
Notifications
You must be signed in to change notification settings - Fork 874
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
remix vm cancun abi.decode revert #4800
Comments
deploy environment: remix vm cancun |
Hello @alexanderhawl , do you see any errors in browser console too? |
just only revert. But I replay it in blocksec phalcon exploer, it says invalid opcode MCOPY. |
Can you share error screenshot? This might not be related to cancun VM as if I compile using Shanghai EVM version and deploy to Remix VM(Shanghai) method call still fails |
Also, |
I tried the code in foundry, the evm_version is shanghai, it also reverts. |
I used blocksec phalcon to fork a eth mainnet, transaction always went well no matter the compiler is cancun or shanghai. But if I selected remix vm cancun or shanghai, it reverted. |
Difficult to deduce what's wrong |
I found the error reason, in the remix vm , the token address is not a contract, so the balanceOf function is error. the res variable is 0x. So the abi.decode revert. Thanks your response. |
okay. That's great. Hope you can fix it now. Closing this. |
I deploy the contract in remix vm cancun
when I call the withdrawToken function, it revert, the debug information says the error is in the abi.decode. So I comment it, and use
It works well. I report this issue to solidity team, they say the compilation doesn't report error, the deploying environment is not fact cncun.
https://github.com/ethereum/solidity/issues/15099
The text was updated successfully, but these errors were encountered: