Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

fix: bring back ledger support #1102

Merged
merged 9 commits into from
Feb 29, 2024
Merged

fix: bring back ledger support #1102

merged 9 commits into from
Feb 29, 2024

Conversation

gagdiez
Copy link
Contributor

@gagdiez gagdiez commented Feb 29, 2024

This PR brings back Ledger support, that was removed while transitioning to v4.0.0. It uses the latest package version of Ledger Transport (used to talk with Ledger) and brings some improvements on error handling.

The most important change with respect to v3.5.0 is that the Ledger is now treated as a util instead of a middleware. This way, we can handle Ledger errors on the command, meaning that an error will print the Ledger error message, and NOT the (error message + stack trace + command help).

Finally, the commands where changed, now useLedgerKey is a boolean, and the path is set apart. This introduces no friction to the users using the default path (which we assume is the majority), making the commands fully retrocompatible with v3.5.0 for them.

Users that do select paths will need to use the --ledgerPath flag

@gagdiez gagdiez merged commit e570a2d into master Feb 29, 2024
7 checks passed
@gagdiez gagdiez deleted the ledger branch February 29, 2024 18:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant