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

Open
wants to merge 1 commit into
base: lh/8328-renaming
Choose a base branch
from
Open

chore: update boundary in test #9728

wants to merge 1 commit into from

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
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