Open
Description
Integrate with hardhat-ledger
to allow Ignition deployments to leverage a ledger hardware wallet.
There are several issues that create friction between Ignition and hardhat-ledger
:
- hardhat ledger exposes ledger accounts through a
ledgerAccounts
property in the networks config, this information isn't easily available in Ignition Modules (i.e.m.getAccount
doesn't know aboutledgerAccounts
), and needs to be passed either as a parameter or manually. We may want to consider adding am.getLedgerAccount
or some other API enhancement. - Testing a ledger deploy locally means distributing eth to the ledger account to be used. There is not a clean way of doing this, you can override a task for
node:server-created
andhardhat_setBalance
the ledger address. Or you canm.send
in an Ignition module; however becausem.useModule
can't accept an after you can't encapsulate your live code from your test code, the deploys from the ledger address have to depend on thesend
directly. hardhat-ledger
takes control of the cli UI to send messages about confirming the transaction in the ledger wallet. This control clashes with the Ignition cli UI.
TODO
Metadata
Metadata
Assignees
Type
Projects
Status
No status