diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 50d3ad558c0..a1c2f427e7c 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -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 @@ -603,7 +603,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)