Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
The code can be always rolled back to empty, no need to save the old …
Browse files Browse the repository at this point in the history
…code.

Because it's not allowed to overwrite code now.
  • Loading branch information
gumb0 committed Jun 26, 2019
1 parent 60e72b5 commit 65dedfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libethereum/State.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ void State::rollback(size_t _savepoint)
m_cache.erase(change.address);
break;
case Change::Code:
account.setCode(std::move(change.oldCode));
account.setCode(/*std::move(change.oldCode)*/bytes{});
break;
case Change::Touch:
account.untouch();
Expand Down

0 comments on commit 65dedfe

Please sign in to comment.