In regular hardhat projects we can use @nomicfoundation/hardhat-ledger to add support for ledger devices and use it using the high level interface using ethers.getSigners() with something like this:
Since we can't use this high level interface in zkSync deployments we rely on the Deployer class from this repo which is basically a nice wrapper around the Wallet class which by now only supports directly supplied key material.
Having an option to use a ledger here would be very appreciated
🖼️ Mockups/Examples
It would be nice if this here would work (the code is referencing the default deploy script from the project template used by zksync-dev create project foobar)
🌟 Feature Request
📝 Description
I'd like to see support for instantiating a
Wallet
that is backed by a ledger device. This could be done using a new static constructor like🤔 Rationale
In regular hardhat projects we can use
@nomicfoundation/hardhat-ledger
to add support for ledger devices and use it using the high level interface usingethers.getSigners()
with something like this:Since we can't use this high level interface in zkSync deployments we rely on the
Deployer
class from this repo which is basically a nice wrapper around theWallet
class which by now only supports directly supplied key material.Having an option to use a ledger here would be very appreciated
🖼️ Mockups/Examples
It would be nice if this here would work (the code is referencing the default deploy script from the project template used by
zksync-dev create project foobar
)