Browse Source

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

cdetrio 8 years ago
parent
commit
ffebf00114
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/vm/runtime/env.go

+ 1 - 1
core/vm/runtime/env.go

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