pub trait FunctionCallHandler {
// Required method
fn call_function(
&self,
name: &str,
args: &[DynSolValue],
callee: Option<&DynSolValue>,
snapshot_id: usize,
) -> Result<DynSolValue>;
}Expand description
Handler trait for function calls and built-in functions.
Executes function calls including contract functions, built-in functions (like keccak256),
and EDB-specific functions (like edb_sload).
Required Methods§
Sourcefn call_function(
&self,
name: &str,
args: &[DynSolValue],
callee: Option<&DynSolValue>,
snapshot_id: usize,
) -> Result<DynSolValue>
fn call_function( &self, name: &str, args: &[DynSolValue], callee: Option<&DynSolValue>, snapshot_id: usize, ) -> Result<DynSolValue>
Call a function with the given arguments.
§Arguments
name- The function name to callargs- Function arguments asDynSolValuearraycallee- Optional target address for the call (None uses current context)snapshot_id- The execution context identifier
§Returns
The function’s return value, or an error if the call fails