internal/ethapi: fix time type (#1455)

Co-authored-by: wit <wit765765346@gmail>
This commit is contained in:
wit765 2025-09-08 23:30:09 +08:00 committed by GitHub
parent 241ad1d635
commit a943fcee3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -602,7 +602,7 @@ func (diff *BlockOverrides) Apply(blockCtx *vm.BlockContext) {
blockCtx.Difficulty = diff.Difficulty.ToInt()
}
if diff.Time != nil {
blockCtx.Time = diff.Time.ToInt()
blockCtx.Time = diff.Time.ToInt().Uint64()
}
if diff.GasLimit != nil {
blockCtx.GasLimit = uint64(*diff.GasLimit)