Re-exportsΒ§
use crate::Error;πuse crate::Result;πuse alloy_primitives::Address;πuse alloy_primitives::Bytes;πuse alloy_primitives::hex;πuse alloy_primitives::hex;πuse alloy_sol_types::SolError;πuse alloy_sol_types::SolValue;πuse foundry_common::ContractsByArtifact;πuse foundry_evm_core::decode::RevertDecoder;πuse revm::interpreter::InstructionResult;πuse spec::Vm;πuse super::assume::AcceptableRevertParameters;πuse super::assume::AssumeNoRevert;πuse super::expect::ExpectedRevert;π
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Β§
- Revert
Parameters π - 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 π