mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
fix incorrect equality condition is HasAccount
This commit is contained in:
parent
66dd866e89
commit
54e060f094
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ func (acct *StateAccount) Copy() *StateAccount {
|
||||||
|
|
||||||
// HasStorage returns true if the account has a non-empty storage tree.
|
// HasStorage returns true if the account has a non-empty storage tree.
|
||||||
func (acc *StateAccount) HasStorage() bool {
|
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
|
// SlimAccount is a modified version of an Account, where the root is replaced
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue