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

fix: reworked gas comparison logic #2611

Conversation

quiet-node
Copy link
Member

Description:
This PR reworks gas comparison logic. Originally, gas price was compared to a hard-coded value, 71 HBARs, which is only true if the environment is local-net or previewnet. The new logic retrieves the expected gas value from the Relay for the comparison so it would be correct in all environments.

Related issue(s):

Fixes #2610

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
@quiet-node quiet-node added the bug Something isn't working label Jun 18, 2024
@quiet-node quiet-node added this to the 0.51.0 milestone Jun 18, 2024
@quiet-node quiet-node self-assigned this Jun 18, 2024
Copy link

sonarcloud bot commented Jun 18, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

Tests

    2 files  152 suites   14s ⏱️
847 tests 846 ✔️ 1 💤 0
859 runs  858 ✔️ 1 💤 0

Results for commit 960d408.

Copy link

Acceptance Tests

  21 files  281 suites   32m 40s ⏱️
604 tests 598 ✔️ 3 💤 3
886 runs  873 ✔️ 7 💤 6

Results for commit 960d408.

Copy link
Collaborator

@ebadiere ebadiere left a comment

Choose a reason for hiding this comment

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

LG.

@quiet-node quiet-node merged commit 52a7d15 into main Jun 20, 2024
35 of 36 checks passed
@quiet-node quiet-node deleted the 2610-basefeepergas-is-compared-to-a-hard-coded-value-in-batch-1-acceptance-test branch June 20, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

baseFeePerGas is compared to a hard-coded value in batch 1 acceptance test
2 participants