aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/state.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-18 18:44:25 +0800
committerobscuren <geffobscura@gmail.com>2015-03-18 18:44:25 +0800
commit942980609fb8a36873689bd3bd0a15488f327d56 (patch)
treed9de01873dc04c4e4042cf1260fe180d01f259bb /xeth/state.go
parentcd52ef315cf4d65cfb5282f72d795849266e3ab5 (diff)
downloaddexon-942980609fb8a36873689bd3bd0a15488f327d56.tar
dexon-942980609fb8a36873689bd3bd0a15488f327d56.tar.gz
dexon-942980609fb8a36873689bd3bd0a15488f327d56.tar.bz2
dexon-942980609fb8a36873689bd3bd0a15488f327d56.tar.lz
dexon-942980609fb8a36873689bd3bd0a15488f327d56.tar.xz
dexon-942980609fb8a36873689bd3bd0a15488f327d56.tar.zst
dexon-942980609fb8a36873689bd3bd0a15488f327d56.zip
conversions
Diffstat (limited to 'xeth/state.go')
-rw-r--r--xeth/state.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/xeth/state.go b/xeth/state.go
index 7d9ceab1b..f645a9cac 100644
--- a/xeth/state.go
+++ b/xeth/state.go
@@ -19,7 +19,7 @@ func (self *State) State() *state.StateDB {
}
func (self *State) Get(addr string) *Object {
- return &Object{self.state.GetStateObject(common.FromHex(addr))}
+ return &Object{self.state.GetStateObject(common.HexToAddress(addr))}
}
func (self *State) SafeGet(addr string) *Object {
@@ -27,9 +27,9 @@ func (self *State) SafeGet(addr string) *Object {
}
func (self *State) safeGet(addr string) *state.StateObject {
- object := self.state.GetStateObject(common.FromHex(addr))
+ object := self.state.GetStateObject(common.HexToAddress(addr))
if object == nil {
- object = state.NewStateObject(common.FromHex(addr), self.xeth.eth.StateDb())
+ object = state.NewStateObject(common.HexToAddress(addr), self.xeth.eth.StateDb())
}
return object