Skip to content

Commit ffebf00

Browse files
committed
core/vm/runtime: fix evm command to use --gasprice flag value
1 parent f4841ff commit ffebf00

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)