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

Improve ledger path docs #418

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/gauntlet/withdraw.md
Expand Up @@ -12,7 +12,7 @@ The `recipient` address is the payee address set in the contract configuration.
yarn gauntlet ocr2:withdraw_payment --network=mainnet --recipient=<PAYEE_ADDRESS> <FEED_ADDRESS>
```

If you are using a Ledger, include the `--withLedger` flag. Gauntlet will ask you to sign the transaction using your Ledger.
If you are using a Ledger, include the `--withLedger` flag. Gauntlet will ask you to sign the transaction using your Ledger. The default derivation path is `44'/501'`. If you want to use another one, use the `--ledgerPath` flag. e.g. `--ledgerPath=44/501/0/0`

```bash
yarn gauntlet ocr2:withdraw_payment --network=mainnet --recipient=<PAYEE_ADDRESS> --withLedger <FEED_ADDRESS>
Expand Down
2 changes: 1 addition & 1 deletion gauntlet/README.md
@@ -1,3 +1,3 @@
# Gauntlet Solana

For more information, see the [Chainlink Solana Documentation](./docs/gauntlet).
For more information, see the [Chainlink Solana Documentation](../docs/gauntlet/README.md).
4 changes: 3 additions & 1 deletion gauntlet/packages/gauntlet-solana/src/commands/wallet.ts
Expand Up @@ -66,7 +66,9 @@ export class LedgerWallet extends SolanaWallet {
const solana = new Solana(transport)
const { address } = await solana.getAddress(path, false)
const pubkey = new PublicKey(address)
logger.info(`Ledger: Using ${pubkey.toString()}, derivationPath: ${path} (can be overridden with --ledgerPath)`)
logger.info(
`Ledger: Using ${pubkey.toString()}, derivationPath: ${path} (can be overridden with --ledgerPath, e.g --ledgerPath=44/501/0/0)`,
)
return new LedgerWallet(solana, pubkey, path)
} catch (e) {
logger.error('Ledger: Could not access ledger. Is it unlocked and Solana app open?')
Expand Down