You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I deploy it in remix VM(cancun), and evm version in solidity compiler setting is also cancun. after deployed it, when I called the withdrawToken funciton, it reverted. but if I comment the sentenct
Heya @alexanderhawl, the only way you would get an invalid opcode revert is by deploying it to an EVM fork that doesn't support said opcode; given that you're not using the MCOPY opcode directly (in inline assembly), and have encountered no compilation errors, I am inclined to believe that you are indeed setting the compiler version to cancun, which is then subsequently generating an MCOPY opcode. On the other hand, I'm fairly certain that the EVM fork you're deploying to is not in fact Cancun. Please try again and make sure that the fork you're deploying to is Cancun.
I'll therefore be closing this issue as not a bug.
Description
I deploy it in remix VM(cancun), and evm version in solidity compiler setting is also cancun. after deployed it, when I called the withdrawToken funciton, it reverted. but if I comment the sentenct
and using this sentence
It works well. I debugged the problem in phalcon fork, the revert reason is the invalid opcode MCOPY.
Environment
Steps to Reproduce
The text was updated successfully, but these errors were encountered: