aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/runtime/env.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/vm/runtime/env.go')
-rw-r--r--core/vm/runtime/env.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/vm/runtime/env.go b/core/vm/runtime/env.go
index 3cf0dd024..a25c6d71c 100644
--- a/core/vm/runtime/env.go
+++ b/core/vm/runtime/env.go
@@ -25,7 +25,7 @@ import (
"github.com/ethereum/go-ethereum/core/vm"
)
-func NewEnv(cfg *Config, state *state.StateDB) *vm.Environment {
+func NewEnv(cfg *Config, state *state.StateDB) *vm.EVM {
context := vm.Context{
CanTransfer: core.CanTransfer,
Transfer: core.Transfer,
@@ -40,5 +40,5 @@ func NewEnv(cfg *Config, state *state.StateDB) *vm.Environment {
GasPrice: new(big.Int),
}
- return vm.NewEnvironment(context, cfg.State, cfg.ChainConfig, cfg.EVMConfig)
+ return vm.NewEVM(context, cfg.State, cfg.ChainConfig, cfg.EVMConfig)
}