Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit 0ad2daf

Browse files
authored
[memory_opt] fix failed precompile test (#547)
* Replace `call_id` with `caller_id` for copy steps of input bytes. * Set `max_copy_rows` to 1100 in precompile test.
1 parent 2e2792d commit 0ad2daf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bus-mapping/src/evm/opcodes/callop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ impl<const N_ARGS: usize> Opcode for CallOpcode<N_ARGS> {
357357
if call.call_data_length > 0 {
358358
let copy_steps = state.gen_copy_steps_for_precompile_calldata(
359359
&mut exec_step,
360-
call.call_id,
360+
call.caller_id,
361361
call.call_data_offset,
362362
call.call_data_length,
363363
&caller_memory,

zkevm-circuits/src/evm_circuit/execution/callop.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,6 +1822,7 @@ mod test {
18221822
CircuitTestBuilder::new_from_test_ctx(ctx)
18231823
.params(CircuitsParams {
18241824
max_rws: test_call.max_rws,
1825+
max_copy_rows: 1100,
18251826
..Default::default()
18261827
})
18271828
.run();

0 commit comments

Comments
 (0)