Skip to content

Commit

Permalink
fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Jul 9, 2024
1 parent 390a40a commit 8bd691b
Show file tree
Hide file tree
Showing 2 changed files with 528 additions and 496 deletions.
8 changes: 4 additions & 4 deletions crates/bsc/evm/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ where
.into());
}

self.patch_mainnet_before_tx(&block.header, transaction, evm.db_mut());
self.patch_chapel_before_tx(&block.header, transaction, evm.db_mut());
self.patch_mainnet_before_tx(transaction, evm.db_mut());
self.patch_chapel_before_tx(transaction, evm.db_mut());

EvmConfig::fill_tx_env(evm.tx_mut(), transaction, *sender);

Expand All @@ -204,8 +204,8 @@ where

evm.db_mut().commit(state);

self.patch_mainnet_after_tx(&block.header, transaction, evm.db_mut());
self.patch_chapel_after_tx(&block.header, transaction, evm.db_mut());
self.patch_mainnet_after_tx(transaction, evm.db_mut());
self.patch_chapel_after_tx(transaction, evm.db_mut());

// append gas used
cumulative_gas_used += result.gas_used();
Expand Down
Loading

0 comments on commit 8bd691b

Please sign in to comment.