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: return transaction.feesStrategy gasOption instead of the medium value #7652

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

CremaFR
Copy link
Member

@CremaFR CremaFR commented Aug 22, 2024

✅ Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

📝 Description

When not providing gasOption, prepare Transactions makes a node api call to fetch medium fees regardless of what is asked on feeStrategy. This PR aims to fix this by returning the option asked on the transaction before defaulting to medium

❓ Context

- JIRA or GitHub link:


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@CremaFR CremaFR requested a review from a team as a code owner August 22, 2024 11:30
Copy link

vercel bot commented Aug 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web-tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 26, 2024 9:15am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Aug 26, 2024 9:15am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Aug 26, 2024 9:15am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Aug 26, 2024 9:15am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Aug 26, 2024 9:15am

@CremaFR CremaFR changed the title fix: return transaction.feesStrategy instead of medium fix: return transaction.feesStrategy gasOption instead of the medium value Aug 22, 2024
Copy link
Contributor

@lambertkevin lambertkevin left a comment

Choose a reason for hiding this comment

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

Can you please add a unit test for this new behavior in libs/coin-modules/coin-evm/src/__tests__/unit/api/node/ledger.unit.test.ts ? Thanks 🙏

Copy link
Contributor

@lambertkevin lambertkevin left a comment

Choose a reason for hiding this comment

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

Thanks!

@CremaFR CremaFR merged commit e7db725 into develop Aug 27, 2024
60 of 66 checks passed
@CremaFR CremaFR deleted the fix/evm-fee-option branch August 27, 2024 06:19
bharamboure-ledger pushed a commit that referenced this pull request Sep 2, 2024
…value (#7652)

* fix: return transaction.feesStrategy instead of medium

* chore: tests
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.

2 participants