Repository navigation
Replies: 2 comments
|
A valid opcode your EVM version predates gives A byte that is not an opcode in any revision gives vm.etch(A, hex"0c"); // 0x0c is undefined
vm.etch(A, hex"deadbeefcafebabe"); // data executed as codeSo if you are seeing On a fork that usually comes down to one of:
For tracing it once you know where it lands, If it does turn out to be Checked on Foundry 1.8.1 ( |
|
For B20 tokens specifically there is a more direct cause than a missing contract. Since the Beryl upgrade, B20 tokens on Base are native Rust precompiles, not EVM contracts. The token address only holds a 1-byte marker: on Base mainnet, Stock Foundry doesn't know these precompiles. When it forks Base and your calldata reaches a B20 token, it fetches that Options:
Researched with the help of an AI assistant; the |
Uh oh!
There was an error while loading. Please reload this page.
When I use Foundry to simulate certain call data, I aim to trace the details of the stack exceptions that occur during execution. The tokens involved in these transactions come from the B20 protocol on the Base chain. In such cases, an error occurs in the execution stack, indicating “[OpcodeNotFound] EvmError: OpcodeNotFound.” How can I use Foundry to track and resolve such errors?
All reactions