• Mark Tyneway's avatar
    contracts-governance: allow deploy by ledger · 856a02b4
    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
Name
Last commit
Last update
..
contracts Loading commit data...
deploy Loading commit data...
deploy-config Loading commit data...
scripts Loading commit data...
src Loading commit data...
test Loading commit data...
.env.example Loading commit data...
.eslintignore Loading commit data...
.eslintrc.js Loading commit data...
.npmignore Loading commit data...
.prettierignore Loading commit data...
.prettierrc.js Loading commit data...
.solhint.json Loading commit data...
.solhintignore Loading commit data...
CHANGELOG.md Loading commit data...
README.md Loading commit data...
hardhat.config.ts Loading commit data...
package.json Loading commit data...
tsconfig.json Loading commit data...