aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm_env.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-04 18:40:20 +0800
committerobscuren <geffobscura@gmail.com>2014-12-04 18:40:20 +0800
commitf298ffdbb8ec2b14f254e880a65f22f4d7c66305 (patch)
tree59b0edc06529785afef7c103e9bdbd4248ec58da /core/vm_env.go
parent3664cd58e3631fccf4d9aba1932e0bb63ad442a6 (diff)
downloaddexon-f298ffdbb8ec2b14f254e880a65f22f4d7c66305.tar.gz
dexon-f298ffdbb8ec2b14f254e880a65f22f4d7c66305.tar.zst
dexon-f298ffdbb8ec2b14f254e880a65f22f4d7c66305.zip
Renamed State => StateDB
Diffstat (limited to 'core/vm_env.go')
-rw-r--r--core/vm_env.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/vm_env.go b/core/vm_env.go
index 17686b28f..6332abc39 100644
--- a/core/vm_env.go
+++ b/core/vm_env.go
@@ -9,13 +9,13 @@ import (
)
type VMEnv struct {
- state *state.State
+ state *state.StateDB
block *types.Block
tx *types.Transaction
depth int
}
-func NewEnv(state *state.State, tx *types.Transaction, block *types.Block) *VMEnv {
+func NewEnv(state *state.StateDB, tx *types.Transaction, block *types.Block) *VMEnv {
return &VMEnv{
state: state,
block: block,
@@ -31,7 +31,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.tx.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 }