Skip to content

Commit 7727fdb

Browse files
committed
internal/ethapi: change Time field to uint64 ethereum#26474
1 parent cd74961 commit 7727fdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/ethapi/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ func (diff *StateOverride) Apply(statedb *state.StateDB) error {
585585
type BlockOverrides struct {
586586
Number *hexutil.Big
587587
Difficulty *hexutil.Big
588-
Time *hexutil.Big
588+
Time *hexutil.Uint64
589589
GasLimit *hexutil.Uint64
590590
Coinbase *common.Address
591591
Random *common.Hash
@@ -603,7 +603,7 @@ func (diff *BlockOverrides) Apply(blockCtx *vm.BlockContext) {
603603
blockCtx.Difficulty = diff.Difficulty.ToInt()
604604
}
605605
if diff.Time != nil {
606-
blockCtx.Time = diff.Time.ToInt().Uint64()
606+
blockCtx.Time = uint64(*diff.Time)
607607
}
608608
if diff.GasLimit != nil {
609609
blockCtx.GasLimit = uint64(*diff.GasLimit)

0 commit comments

Comments
 (0)