Skip to content

Commit

Permalink
fix returndata for precompile failed
Browse files Browse the repository at this point in the history
  • Loading branch information
lispc committed Aug 14, 2023
1 parent ae23cd7 commit 30e2b78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bus-mapping/src/evm/opcodes/error_precompile_failed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ impl Opcode for PrecompileFailed {

let call = state.parse_call(geth_step)?;
state.push_call(call.clone());
state.caller_ctx_mut()?.return_data.clear();
state.handle_return(&mut exec_step, geth_steps, false)?;

for i in 0..stack_input_num {
Expand Down

0 comments on commit 30e2b78

Please sign in to comment.