-
Mark Tyneway authored
Adds the config for using a ledger with hardhat deploy. The env var `LEDGER_ADDRESS` must be set for this to work. Note that hh deploy is buggy and will always use the default path when creating a `LedgerSigner`. This means the `LEDGER_ADDRESS` env var is useless, it won't actually use that address when doing a deployment. Basically, if its set then it just means use the ledger's first derived address at the default path. This should be an easy thing to fix upstream, although kind of annoying. The paths would need to be searched linearly until a matching address is found, I think a better way to configure this is pass either: - A path + address - A path If both are passed, then it should validate that the path matches the address. If a path is passed, then yolo use the derived account.
856a02b4