Skip to content

Commit

Permalink
fix(signer-trezor): fix zero gas price when sending legacy tx with tr…
Browse files Browse the repository at this point in the history
…ezor (alloy-rs#977)

fix(signer-trezor): fix zero gas price for legacy tx
  • Loading branch information
TuDo1403 authored and ben186 committed Jul 27, 2024
1 parent e2c2f44 commit 06a41a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/signer-trezor/src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl TrezorSigner {
let nonce = tx.nonce();
let nonce = u64_to_trezor(nonce);

let gas_price = 0_u128;
let gas_price = tx.gas_price().unwrap_or(0);
let gas_price = u128_to_trezor(gas_price);

let gas_limit = tx.gas_limit();
Expand Down

0 comments on commit 06a41a0

Please sign in to comment.