Skip to content

Commit

Permalink
fix previous commit (bluealloy#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita authored Feb 2, 2024
1 parent 653dec1 commit 457244b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/revm/src/journaled_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ impl JournaledState {
if address != target {
// Both accounts are loaded before this point, `address` as we execute its contract.
// and `target` at the beginning of the function.
let acc_balance = self.state.get_mut(&target).unwrap().info.balance;
let acc_balance = self.state.get_mut(&address).unwrap().info.balance;

let target_account = self.state.get_mut(&target).unwrap();
Self::touch_account(self.journal.last_mut().unwrap(), &target, target_account);
Expand Down

0 comments on commit 457244b

Please sign in to comment.