diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-04 18:40:20 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-04 18:40:20 +0800 |
commit | f298ffdbb8ec2b14f254e880a65f22f4d7c66305 (patch) | |
tree | 59b0edc06529785afef7c103e9bdbd4248ec58da /cmd | |
parent | 3664cd58e3631fccf4d9aba1932e0bb63ad442a6 (diff) | |
download | dexon-f298ffdbb8ec2b14f254e880a65f22f4d7c66305.tar dexon-f298ffdbb8ec2b14f254e880a65f22f4d7c66305.tar.gz dexon-f298ffdbb8ec2b14f254e880a65f22f4d7c66305.tar.bz2 dexon-f298ffdbb8ec2b14f254e880a65f22f4d7c66305.tar.lz dexon-f298ffdbb8ec2b14f254e880a65f22f4d7c66305.tar.xz dexon-f298ffdbb8ec2b14f254e880a65f22f4d7c66305.tar.zst dexon-f298ffdbb8ec2b14f254e880a65f22f4d7c66305.zip |
Renamed State => StateDB
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/mist/debugger.go | 2 | ||||
-rw-r--r-- | cmd/utils/vm_env.go | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cmd/mist/debugger.go b/cmd/mist/debugger.go index 06ff6b8cc..ca3ff5af2 100644 --- a/cmd/mist/debugger.go +++ b/cmd/mist/debugger.go @@ -40,7 +40,7 @@ type DebuggerWindow struct { vm *vm.DebugVm Db *Debugger - state *state.State + state *state.StateDB } func NewDebuggerWindow(lib *UiLib) *DebuggerWindow { diff --git a/cmd/utils/vm_env.go b/cmd/utils/vm_env.go index 7c97e1a72..e12fe805d 100644 --- a/cmd/utils/vm_env.go +++ b/cmd/utils/vm_env.go @@ -10,7 +10,7 @@ import ( ) type VMEnv struct { - state *state.State + state *state.StateDB block *types.Block transactor []byte @@ -20,7 +20,7 @@ type VMEnv struct { Gas *big.Int } -func NewEnv(state *state.State, block *types.Block, transactor []byte, value *big.Int) *VMEnv { +func NewEnv(state *state.StateDB, block *types.Block, transactor []byte, value *big.Int) *VMEnv { return &VMEnv{ state: state, block: block, @@ -37,7 +37,7 @@ func (self *VMEnv) Time() int64 { return self.block.Time } func (self *VMEnv) Difficulty() *big.Int { return self.block.Difficulty } func (self *VMEnv) BlockHash() []byte { return self.block.Hash() } func (self *VMEnv) Value() *big.Int { return self.value } -func (self *VMEnv) State() *state.State { return self.state } +func (self *VMEnv) State() *state.StateDB { return self.state } func (self *VMEnv) GasLimit() *big.Int { return self.block.GasLimit } func (self *VMEnv) Depth() int { return self.depth } func (self *VMEnv) SetDepth(i int) { self.depth = i } |