Replies: 1 comment 3 replies
-
Are you using Note that the JsonRpcSigner does not use There is also currently an issue with the LedgerSigner I'm working on, and am moving it to an ancillary package so that it can more reliably be managed as the upstream dependencies are somewhat picky. :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to migrate a deployment hardhat+ethers.js script to using
LedgerSigner
.I naively tried instantiating a
LedgerSigner
into aledger
variable and just added.connect(ledger)
before any line that previously sent a transaction.However, I noticed the transactions show up with 0 "Max Fees" on my device, and getting a
ProviderError: transaction underpriced
error after signing.Inspecting the code for
LedgerSigner
a bit, it seems to leave most options undefined unless explicitly set. However, I'm not sure how ethers.js handles the automagic gas estimation, gas price calculation, etc in the "usual" case (which I'm guessing usesJsonRpcSigner
?), so maybe I'm wrong, and this should be working.My question is: do I have to provide all the transaction options manually for
LedgerSigner
, or I'm doing something else wrong? Is there anything else I should be changing when usingLedgerSigner
?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions