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

refactor: set max uint256 value dynamically #235

Merged
merged 1 commit into from
Dec 15, 2023
Merged

refactor: set max uint256 value dynamically #235

merged 1 commit into from
Dec 15, 2023

Conversation

milapsheth
Copy link
Member

@milapsheth milapsheth commented Dec 15, 2023

The uint256 max constant can be set using type(uint256).max
Resolves #222

@milapsheth milapsheth requested a review from a team as a code owner December 15, 2023 16:49
@milapsheth milapsheth merged commit 753a4be into main Dec 15, 2023
4 checks passed
@milapsheth milapsheth deleted the uint-max branch December 15, 2023 18:01
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.

Use type(T).max to get maximum value of uint
1 participant