Skip to content

Commit

Permalink
check correctly the storage in ToyAccount
Browse files Browse the repository at this point in the history
Signed-off-by: Karim Taam <[email protected]>
  • Loading branch information
matkt committed Jun 12, 2024
1 parent d9ab92e commit 6d871d9
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 6d871d9

Please sign in to comment.