chore: include err in error return (#15279)

This commit is contained in:
Matthias Seitz
2025-03-25 22:56:28 +01:00
committed by GitHub
parent 29104ecea6
commit fb5a6e755d

View File

@@ -471,9 +471,9 @@ pub trait Trace:
// apply relevant system calls
let mut evm = self.evm_config().evm_with_env(db, evm_env.clone());
system_caller
.apply_pre_execution_changes(block.header(), &mut evm)
.map_err(|_| EthApiError::EvmCustom("failed to apply 4788 system call".to_string()))?;
system_caller.apply_pre_execution_changes(block.header(), &mut evm).map_err(|err| {
EthApiError::EvmCustom(format!("failed to apply 4788 system call {err}"))
})?;
Ok(())
}