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(signer-trezor): fix zero gas price when sending legacy tx with trezor #977

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

TuDo1403
Copy link
Contributor

Motivation

This PR introduces a modification to the way gas prices are handled in the creation of legacy transactions for trezor wallet. The change ensures that the trezor-signer safely handles cases where the gas price might not be explicitly provided in the transaction details.

Solution

Previously, the gas price was statically set to zero. This modification allows the trezor-signer to fetch the current gas price from the transaction and defaults to zero if none is specified.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

ty

@mattsse mattsse merged commit 8748f9b into alloy-rs:main Jun 26, 2024
21 of 22 checks passed
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
…ezor (alloy-rs#977)

fix(signer-trezor): fix zero gas price for legacy tx
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.

3 participants