Skip to content

Commit 07a6d5c

Browse files
authored
fix(protocol): use seconds in slot, not seconds in epoch (#19327)
1 parent ac7ba74 commit 07a6d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/protocol/contracts/layer1/preconf/impl/PreconfWhitelist.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ contract PreconfWhitelist is EssentialContract, IPreconfWhitelist {
217217
// (zero), return address(0) directly.
218218
uint256 rand = uint256(
219219
LibPreconfUtils.getBeaconBlockRoot(
220-
_epochTimestamp - LibPreconfConstants.SECONDS_IN_EPOCH
220+
_epochTimestamp - LibPreconfConstants.SECONDS_IN_SLOT
221221
)
222222
);
223223

0 commit comments

Comments
 (0)