We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd74961 commit 7727fdbCopy full SHA for 7727fdb
internal/ethapi/api.go
@@ -585,7 +585,7 @@ func (diff *StateOverride) Apply(statedb *state.StateDB) error {
585
type BlockOverrides struct {
586
Number *hexutil.Big
587
Difficulty *hexutil.Big
588
- Time *hexutil.Big
+ Time *hexutil.Uint64
589
GasLimit *hexutil.Uint64
590
Coinbase *common.Address
591
Random *common.Hash
@@ -603,7 +603,7 @@ func (diff *BlockOverrides) Apply(blockCtx *vm.BlockContext) {
603
blockCtx.Difficulty = diff.Difficulty.ToInt()
604
}
605
if diff.Time != nil {
606
- blockCtx.Time = diff.Time.ToInt().Uint64()
+ blockCtx.Time = uint64(*diff.Time)
607
608
if diff.GasLimit != nil {
609
blockCtx.GasLimit = uint64(*diff.GasLimit)
0 commit comments