aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'xeth/state.go')
-rw-r--r--xeth/state.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xeth/state.go b/xeth/state.go
index 981fe63b7..e67dc4b5f 100644
--- a/xeth/state.go
+++ b/xeth/state.go
@@ -19,6 +19,7 @@ package xeth
import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/state"
+ "github.com/ethereum/go-ethereum/eth"
)
type State struct {
@@ -45,8 +46,7 @@ func (self *State) SafeGet(addr string) *Object {
func (self *State) safeGet(addr string) *state.StateObject {
object := self.state.GetStateObject(common.HexToAddress(addr))
if object == nil {
- object = state.NewStateObject(common.HexToAddress(addr), self.xeth.backend.ChainDb())
+ object = state.NewStateObject(common.HexToAddress(addr), self.xeth.backend.Service("eth").(*eth.Ethereum).ChainDb())
}
-
return object
}