Skip to content

Commit

Permalink
Remove simulated_state
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Feb 20, 2025
1 parent 1709a05 commit b7f6ac0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vm/rust/src/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,9 @@ where
}

set_l2_gas_limit(&mut original_transaction, initial_gas_limit);
let mut simulated_state = CachedState::<_>::create_transactional(state);
let mut exec_info = original_transaction.execute(&mut simulated_state, block_context)?;
let mut exec_info = original_transaction.execute(state, block_context)?;

// Execute the transaction with the determined gas limit and update the estimate.
simulated_state.commit();
exec_info.receipt.gas.l2_gas = l2_gas_limit;

Ok(exec_info)
Expand Down

0 comments on commit b7f6ac0

Please sign in to comment.