Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update boundary in test #9728

Merged
merged 1 commit into from
Nov 7, 2024
Merged

chore: update boundary in test #9728

merged 1 commit into from
Nov 7, 2024

Conversation

LHerskind
Copy link
Contributor

@LHerskind LHerskind commented Nov 4, 2024

Fixes #9362.

The boundary don't support using type(uint256).max, since the value is a slot and not a timestamp. So when the timestamp is to be computed from the slot we end up multiplying by the slot duration and adding the genesis time (so if slot number is large, it will overflow). slot * slot_duration + genesis_time.

Instead, we can do similar to what was done in pushProposal.t.sol for a computation of the limits. Both are updated to keep it aligned and easier to read.

@LHerskind LHerskind mentioned this pull request Nov 4, 2024
@LHerskind LHerskind marked this pull request as ready for review November 4, 2024 18:07
@LHerskind LHerskind linked an issue Nov 4, 2024 that may be closed by this pull request
@LHerskind LHerskind force-pushed the lh/8328-renaming branch 3 times, most recently from 9605ee4 to f952745 Compare November 7, 2024 09:31
Base automatically changed from lh/8328-renaming to master November 7, 2024 10:02
@LHerskind LHerskind enabled auto-merge (squash) November 7, 2024 12:15
@LHerskind LHerskind merged commit f6f0be8 into master Nov 7, 2024
67 checks passed
@LHerskind LHerskind deleted the lh/9362 branch November 7, 2024 13:06
ludamad pushed a commit that referenced this pull request Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

investigate overflow in rollup test
2 participants