diff options
Diffstat (limited to 'core/state/state_object.go')
-rw-r--r-- | core/state/state_object.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/state/state_object.go b/core/state/state_object.go index c06e3d227..ad6a91cdb 100644 --- a/core/state/state_object.go +++ b/core/state/state_object.go @@ -260,6 +260,13 @@ func (self *StateObject) Nonce() uint64 { return self.nonce } +// Never called, but must be present to allow StateObject to be used +// as a vm.Account interface that also satisfies the vm.ContractRef +// interface. Interfaces are awesome. +func (self *StateObject) Value() *big.Int { + panic("Value on StateObject should never be called") +} + func (self *StateObject) EachStorage(cb func(key, value []byte)) { // When iterating over the storage check the cache first for h, v := range self.storage { |