Skip to content

Commit fc78ce6

Browse files
authored
Merge pull request #14859 from cdetrio/evm-flag-gasprice
core/vm/runtime: fix evm command to use --gasprice flag value
2 parents f4841ff + ffebf00 commit fc78ce6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/vm/runtime/env.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func NewEnv(cfg *Config, state *state.StateDB) *vm.EVM {
3737
Time: cfg.Time,
3838
Difficulty: cfg.Difficulty,
3939
GasLimit: new(big.Int).SetUint64(cfg.GasLimit),
40-
GasPrice: new(big.Int),
40+
GasPrice: cfg.GasPrice,
4141
}
4242

4343
return vm.NewEVM(context, cfg.State, cfg.ChainConfig, cfg.EVMConfig)

0 commit comments

Comments
 (0)