Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

[Tests] Fix bounds in the revert conditions#113

Merged
QGarchery merged 2 commits intomainfrom
test/fix-bounds
Jun 17, 2023
Merged

[Tests] Fix bounds in the revert conditions#113
QGarchery merged 2 commits intomainfrom
test/fix-bounds

Conversation

@QGarchery
Copy link
Copy Markdown
Contributor

The bounds are subtracting one instead of adding one, see failing tests in the first commit

@github-actions
Copy link
Copy Markdown

Changes to gas cost

Generated at commit: 80f75ddf89a8f2f6d85f86a485d385caca5ffec4, compared to commit: 7141ef633f74fed943c919403e94e5f80e9c5b72

🧾 Summary (20% most significant diffs)

Contract Method Avg (+/-) %

Full diff report 👇
Contract Deployment Cost (+/-) Method Min (+/-) % Avg (+/-) % Median (+/-) % Max (+/-) % # Calls (+/-)
PercentageMathMock contract 193,438 (0) percentMulUp 356 (0) 0.00% 404 (-16) -3.81% 404 (-49) -10.82% 453 (0) 0.00% 4 (+1)
WadRayMathMock contract 370,205 (0) rayMulUp
wadMulUp
402 (0)
401 (0)
0.00%
0.00%
453 (-17)
449 (-16)
-3.62%
-3.44%
453 (-52)
449 (-49)
-10.30%
-9.84%
505 (0)
498 (0)
0.00%
0.00%
4 (+1)
4 (+1)

@QGarchery QGarchery changed the title Fix bounds in the revert conditions [Tests] Fix bounds in the revert conditions Jun 14, 2023
Copy link
Copy Markdown
Contributor

@Rubilmax Rubilmax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aaaah I went too fast again...

@QGarchery QGarchery merged commit 540207b into main Jun 17, 2023
@QGarchery QGarchery deleted the test/fix-bounds branch June 17, 2023 08:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants