Skip to content

Commit

Permalink
core/vm/runtime: Add Random field to config (#28001)
Browse files Browse the repository at this point in the history
  • Loading branch information
guidovranken authored Aug 25, 2023
1 parent 1a21350 commit 0ba2d3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/vm/runtime/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func NewEnv(cfg *Config) *vm.EVM {
Difficulty: cfg.Difficulty,
GasLimit: cfg.GasLimit,
BaseFee: cfg.BaseFee,
Random: cfg.Random,
}

return vm.NewEVM(blockContext, txContext, cfg.State, cfg.ChainConfig, cfg.EVMConfig)
Expand Down
1 change: 1 addition & 0 deletions core/vm/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ type Config struct {
EVMConfig vm.Config
BaseFee *big.Int
BlobHashes []common.Hash
Random *common.Hash

State *state.StateDB
GetHashFn func(n uint64) common.Hash
Expand Down

0 comments on commit 0ba2d3c

Please sign in to comment.