Skip to content

Commit

Permalink
fix: record pubdata used by precompiles (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan authored May 21, 2024
1 parent 493fcec commit a7de066
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/instruction_handlers/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ fn precompile_call(
let Ok(()) = vm.state.use_gas(aux_data.extra_ergs_cost) else {
return Ok(&PANIC);
};

// TODO record extra pubdata cost
vm.state.current_frame.total_pubdata_spent += aux_data.extra_pubdata_cost as i32;

let mut abi = PrecompileCallABI::from_u256(Register1::get(args, &mut vm.state));
if abi.memory_page_to_read == 0 {
Expand Down

0 comments on commit a7de066

Please sign in to comment.