Renamed object to Object

This commit is contained in:
obscuren
2014-08-05 11:26:12 +02:00
parent 4f0bda403e
commit e71b198e3d
4 changed files with 10 additions and 10 deletions

View File

@ -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))
}