diff --git a/core/state/statedb.go b/core/state/statedb.go index 2fd5518237..8d706625b2 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -267,6 +267,7 @@ func (self *StateDB) GetCodeSize(addr common.Address) int { return size } +// GetCodeHash returns the hash of the code associated with the address. func (self *StateDB) GetCodeHash(addr common.Address) common.Hash { stateObject := self.GetStateObject(addr) if stateObject == nil {