mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
fix(hive): overflow when timestamp is u64::max (#14132)
This commit is contained in:
@ -111,7 +111,7 @@ pub trait LoadPendingBlock:
|
||||
.next_evm_env(
|
||||
&latest,
|
||||
NextBlockEnvAttributes {
|
||||
timestamp: latest.timestamp() + 12,
|
||||
timestamp: latest.timestamp().saturating_add(12),
|
||||
suggested_fee_recipient: latest.beneficiary(),
|
||||
prev_randao: B256::random(),
|
||||
gas_limit: latest.gas_limit(),
|
||||
|
||||
Reference in New Issue
Block a user