Skip to main content Module revert_diagnostic Copy item path Source use alloy_primitives::Address; ๐ use alloy_primitives::map::HashMap; ๐ use foundry_evm_core::constants::CHEATCODE_ADDRESS ; ๐ use foundry_evm_core::constants::HARDHAT_CONSOLE_ADDRESS ; ๐ use foundry_evm_traces::RevertDiagnostic as DetailedRevertReason; ๐ use revm::Inspector; ๐ use revm::bytecode::opcode; ๐ use revm::context::ContextTr; ๐ use revm::context::JournalTr; ๐ use revm::interpreter::CallInputs; ๐ use revm::interpreter::CallOutcome; ๐ use revm::interpreter::CallScheme; ๐ use revm::interpreter::Interpreter; ๐ use revm::interpreter::interpreter_types::Jumps; ๐ RevertDiagnostic An inspector that tracks call context to enhances revert diagnostics.
Useful for understanding reverts that are not linked to custom errors or revert strings. IGNORE ๐ is_delegatecall Checks if the call scheme corresponds to any sort of delegate call