diff --git a/core/types/state_account.go b/core/types/state_account.go index 75c188fea2..0cb751685a 100644 --- a/core/types/state_account.go +++ b/core/types/state_account.go @@ -60,7 +60,7 @@ func (acct *StateAccount) Copy() *StateAccount { // HasStorage returns true if the account has a non-empty storage tree. func (acc *StateAccount) HasStorage() bool { - return len(acc.Root) == 32 && acc.Root == EmptyRootHash + return len(acc.Root) == 32 && acc.Root != EmptyRootHash } // SlimAccount is a modified version of an Account, where the root is replaced