correctly checks the storage in ToyAccount (#7214)

Signed-off-by: Karim Taam <karim.t2am@gmail.com>
revert-7203-patch-1
Karim Taam 6 months ago committed by GitHub
parent 18345ede8d
commit 16c4f92c18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      evm/src/test/java/org/hyperledger/besu/evm/toy/ToyAccount.java

@ -171,7 +171,10 @@ public class ToyAccount implements MutableAccount {
*/
@Override
public boolean isStorageEmpty() {
return storage.isEmpty();
if (storage.isEmpty()) {
return parent == null || parent.isStorageEmpty();
}
return false;
}
@Override

Loading…
Cancel
Save