mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
parent
42da35b86c
commit
28c75fc213
1 changed files with 2 additions and 2 deletions
|
|
@ -585,7 +585,7 @@ func (diff *StateOverride) Apply(statedb *state.StateDB) error {
|
|||
type BlockOverrides struct {
|
||||
Number *hexutil.Big
|
||||
Difficulty *hexutil.Big
|
||||
Time *hexutil.Big
|
||||
Time *hexutil.Uint64
|
||||
GasLimit *hexutil.Uint64
|
||||
Coinbase *common.Address
|
||||
Random *common.Hash
|
||||
|
|
@ -604,7 +604,7 @@ func (diff *BlockOverrides) Apply(blockCtx *vm.BlockContext) {
|
|||
blockCtx.Difficulty = diff.Difficulty.ToInt()
|
||||
}
|
||||
if diff.Time != nil {
|
||||
blockCtx.Time = diff.Time.ToInt().Uint64()
|
||||
blockCtx.Time = uint64(*diff.Time)
|
||||
}
|
||||
if diff.GasLimit != nil {
|
||||
blockCtx.GasLimit = uint64(*diff.GasLimit)
|
||||
|
|
|
|||
Loading…
Reference in a new issue