Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(forge): temporary fix for ledger when using --hd-paths on forge script #2790

Merged
merged 1 commit into from
Aug 15, 2022

Conversation

joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Aug 15, 2022

Motivation

closes #2709

When passed --hd-paths, ledger actually instantiates 2 Ledger wallets. The default LedgerLive(0) and the one with user provided path Other(hd_path. However, ledger cannot at the moment support more than two instantiations, since the first locks access to the device.

Even if we didn't instantiate the default path, the same error behavior would happen if used with multiple --hd-paths.

Solution

Temporarily limit ledger to one instantiation only, while we extend support on ethers-signers for more. Otherwise, --hd-paths is not usable at all.

@joshieDo joshieDo added T-bug Type: bug Cmd-forge-script Command: forge script labels Aug 15, 2022
@gakonst gakonst merged commit 631307c into foundry-rs:master Aug 15, 2022
iFrostizz pushed a commit to iFrostizz/foundry that referenced this pull request Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cmd-forge-script Command: forge script T-bug Type: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

forge script --ledger deployment fails
2 participants