fix incorrect equality condition is HasAccount

This commit is contained in:
Guillaume Ballet 2023-08-11 21:01:00 +02:00
parent 66dd866e89
commit 54e060f094

View file

@ -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