diff --git a/core/vm/contract.go b/core/vm/contract.go index 4d2cd9df7a..f436c8d387 100644 --- a/core/vm/contract.go +++ b/core/vm/contract.go @@ -94,7 +94,7 @@ func (c *Contract) validJumpdest(dest *big.Int) bool { } var analysis bitvec // Do we have a contract hash already? - if c.CodeHash != emptyCodeHash { + if c.CodeHash != (common.Hash{}) { var exist bool // Does parent context have the analysis? analysis, exist = c.jumpdests[c.CodeHash] diff --git a/core/vm/evm.go b/core/vm/evm.go index 9d130e842f..968d2219ea 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -358,7 +358,7 @@ type codeAndHash struct { } func (c *codeAndHash) Hash() common.Hash { - if c.hash == emptyCodeHash { + if c.hash == (common.Hash{}) { c.hash = crypto.Keccak256Hash(c.code) } return c.hash