aboutsummaryrefslogtreecommitdiffstats
path: root/ethstate/state.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-15 23:12:26 +0800
committerobscuren <geffobscura@gmail.com>2014-10-15 23:12:26 +0800
commit311c6f8a3fed5ac03ee4b442fd0f420072bc41b4 (patch)
treede823080f3704d7690fd7172c9742962b66baf3a /ethstate/state.go
parent266d21209478bdb8c89e1ffb95d7f0de34635968 (diff)
downloadgo-tangerine-311c6f8a3fed5ac03ee4b442fd0f420072bc41b4.tar.gz
go-tangerine-311c6f8a3fed5ac03ee4b442fd0f420072bc41b4.tar.zst
go-tangerine-311c6f8a3fed5ac03ee4b442fd0f420072bc41b4.zip
Fixed remote Arithmetic tests
Diffstat (limited to 'ethstate/state.go')
-rw-r--r--ethstate/state.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/ethstate/state.go b/ethstate/state.go
index c2486849b..b897b7ce3 100644
--- a/ethstate/state.go
+++ b/ethstate/state.go
@@ -57,6 +57,15 @@ func (self *State) GetCode(addr []byte) []byte {
return nil
}
+func (self *State) GetState(a, b []byte) []byte {
+ stateObject := self.GetStateObject(a)
+ if stateObject != nil {
+ return stateObject.GetState(b).Bytes()
+ }
+
+ return nil
+}
+
//
// Setting, updating & deleting state object methods
//