Skip to content

Commit

Permalink
Remove setCode removeCode check for if not equal prior value check. A…
Browse files Browse the repository at this point in the history
…s it breaks references tests.

Signed-off-by: Jason Frame <jason.frame@consensys.net>
  • Loading branch information
jframe committed Sep 21, 2023
1 parent 8f75da4 commit ea8893e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@ private void updateCode(
final Bytes updatedCode = codeUpdate.getValue().getUpdated();
final Hash accountHash = codeUpdate.getKey().addressHash();
final Bytes priorCode = codeUpdate.getValue().getPrior();
if ((updatedCode == null || updatedCode.isEmpty())
&& !(priorCode == null || priorCode.isEmpty())) {
if ((updatedCode == null || updatedCode.isEmpty())) {
final Hash priorCodeHash = Hash.hash(priorCode);
bonsaiUpdater.removeCode(accountHash, priorCodeHash);
} else {
Expand Down

0 comments on commit ea8893e

Please sign in to comment.