Settings
Help

Module revert_handlers

Module revert_handlers 

Source

ConstantsΒ§

DUMMY_CREATE_ADDRESS πŸ”’
Same reasoning as DUMMY_CALL_OUTPUT, but for creates.

StaticsΒ§

DUMMY_CALL_OUTPUT πŸ”’
For some cheatcodes we may internally change the status of the call, i.e. in expectRevert. Solidity will see a successful call and attempt to decode the return data. Therefore, we need to populate the return with dummy bytes so the decode doesn’t fail.

TraitsΒ§

RevertParameters πŸ”’
Common parameters for expected or assumed reverts. Allows for code reuse.

FunctionsΒ§

decode_revert πŸ”’
handle_assume_no_revert πŸ”’
handle_expect_revert πŸ”’
handle_revert πŸ”’
Core logic for handling reverts that may or may not be expected (or assumed).
stringify πŸ”’