Module evm_adapters::sputnik::cheatcodes::cheatcode_handler [−][src]
Expand description
Hooks to EVM execution
Structs
Hooks on live EVM execution and forwards everything else to a Sputnik Handler
.
Statics
Address where the Vm cheatcodes contract lives
For certain cheatcodes, we may internally change the status of the call, i.e. in
expectRevert
. Solidity will see a successful call and attempt to abi.decode for the called
function. Therefore, we need to populate the return with dummy bytes such that the decode
doesn’t fail
Type Definitions
A CheatcodeHandler
which uses a CheatcodeStackState
to store its state and a
StackExecutor
for executing transactions.
A MemoryStackStateOwned
state instantiated over a CheatcodeBackend