diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-05 17:26:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-05 17:26:12 +0800 |
commit | e71b198e3d8df1bd8b73bae9bc934b778a3115bf (patch) | |
tree | 4ac7c72ce77df16bfa2dcb337f940d8918b70d39 /ethpipe/object.go | |
parent | 4f0bda403ea332eeb477f8e56457423628772b19 (diff) | |
download | go-tangerine-e71b198e3d8df1bd8b73bae9bc934b778a3115bf.tar go-tangerine-e71b198e3d8df1bd8b73bae9bc934b778a3115bf.tar.gz go-tangerine-e71b198e3d8df1bd8b73bae9bc934b778a3115bf.tar.bz2 go-tangerine-e71b198e3d8df1bd8b73bae9bc934b778a3115bf.tar.lz go-tangerine-e71b198e3d8df1bd8b73bae9bc934b778a3115bf.tar.xz go-tangerine-e71b198e3d8df1bd8b73bae9bc934b778a3115bf.tar.zst go-tangerine-e71b198e3d8df1bd8b73bae9bc934b778a3115bf.zip |
Renamed object to Object
Diffstat (limited to 'ethpipe/object.go')
-rw-r--r-- | ethpipe/object.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ethpipe/object.go b/ethpipe/object.go index ebfb5b904..f0032992c 100644 --- a/ethpipe/object.go +++ b/ethpipe/object.go @@ -5,11 +5,11 @@ import ( "github.com/ethereum/eth-go/ethutil" ) -type object struct { +type Object struct { *ethstate.StateObject } -func (self *object) StorageString(str string) *ethutil.Value { +func (self *Object) StorageString(str string) *ethutil.Value { if ethutil.IsHex(str) { return self.Storage(ethutil.Hex2Bytes(str[2:])) } else { @@ -17,10 +17,10 @@ func (self *object) StorageString(str string) *ethutil.Value { } } -func (self *object) StorageValue(addr *ethutil.Value) *ethutil.Value { +func (self *Object) StorageValue(addr *ethutil.Value) *ethutil.Value { return self.Storage(addr.Bytes()) } -func (self *object) Storage(addr []byte) *ethutil.Value { +func (self *Object) Storage(addr []byte) *ethutil.Value { return self.StateObject.GetStorage(ethutil.BigD(addr)) } |