Skip to content

Commit

Permalink
correctly checks the storage in ToyAccount (#7214)
Browse files Browse the repository at this point in the history
Signed-off-by: Karim Taam <[email protected]>
  • Loading branch information
matkt authored Jun 12, 2024
1 parent 18345ed commit 16c4f92
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ public Map<UInt256, UInt256> getUpdatedStorage() {
*/
@Override
public boolean isStorageEmpty() {
return storage.isEmpty();
if (storage.isEmpty()) {
return parent == null || parent.isStorageEmpty();
}
return false;
}

@Override
Expand Down

0 comments on commit 16c4f92

Please sign in to comment.