diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index e8e81c5f7c..4c40ccc099 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 @@ -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)