Skip to content

Commit

Permalink
TreeMap -> HashMap
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Born <codyborn@outlook.com>
  • Loading branch information
codyborn committed Jul 31, 2022
1 parent b6bf7fc commit 57f1fd2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.hyperledger.besu.evm.account.EvmAccount;
import org.hyperledger.besu.evm.account.MutableAccount;

import java.util.HashMap;
import java.util.Map;
import java.util.NavigableMap;
import java.util.TreeMap;
Expand Down Expand Up @@ -62,7 +63,7 @@ public class UpdateTrackingAccount<A extends Account> implements MutableAccount,
private final NavigableMap<UInt256, UInt256> updatedStorage;
private boolean storageWasCleared = false;
private boolean transactionBoundary = false;
private final NavigableMap<UInt256, UInt256> updatedTransientStorage;
private final Map<UInt256, UInt256> updatedTransientStorage;

UpdateTrackingAccount(final Address address) {
checkNotNull(address);
Expand All @@ -75,7 +76,7 @@ public class UpdateTrackingAccount<A extends Account> implements MutableAccount,

this.updatedCode = Bytes.EMPTY;
this.updatedStorage = new TreeMap<>();
this.updatedTransientStorage = new TreeMap<>();
this.updatedTransientStorage = new HashMap<>();
}

public UpdateTrackingAccount(final A account) {
Expand All @@ -92,7 +93,7 @@ public UpdateTrackingAccount(final A account) {
this.balance = account.getBalance();

this.updatedStorage = new TreeMap<>();
this.updatedTransientStorage = new TreeMap<>();
this.updatedTransientStorage = new HashMap<>();
}

/**
Expand Down

0 comments on commit 57f1fd2

Please sign in to comment.