core/vm/runtime: fix evm command to use --gasprice flag value

This commit is contained in:
cdetrio 2017-07-25 13:06:56 -04:00
parent f4841ff43d
commit ffebf00114

View File

@ -37,7 +37,7 @@ func NewEnv(cfg *Config, state *state.StateDB) *vm.EVM {
Time: cfg.Time, Time: cfg.Time,
Difficulty: cfg.Difficulty, Difficulty: cfg.Difficulty,
GasLimit: new(big.Int).SetUint64(cfg.GasLimit), GasLimit: new(big.Int).SetUint64(cfg.GasLimit),
GasPrice: new(big.Int), GasPrice: cfg.GasPrice,
} }
return vm.NewEVM(context, cfg.State, cfg.ChainConfig, cfg.EVMConfig) return vm.NewEVM(context, cfg.State, cfg.ChainConfig, cfg.EVMConfig)