Skip to content

Commit

Permalink
fix: copy special case to fast VM call tracer (#3509)
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan authored Jan 20, 2025
1 parent 67663bf commit 995e583
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/lib/multivm/src/versions/vm_fast/tracers/calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ impl Tracer for CallTracer {
let current_gas = state.current_frame().gas() as u64;
let from = state.current_frame().caller();
let to = state.current_frame().address();
let input = read_raw_fat_pointer(state, state.read_register(1).0);
let input = if current_gas == 0 {
vec![]
} else {
read_raw_fat_pointer(state, state.read_register(1).0)
};
let value = U256::from(state.current_frame().context_u128());
let ty = match ty {
CallingMode::Normal => CallType::Call(FarCallOpcode::Normal),
Expand Down

0 comments on commit 995e583

Please sign in to comment.