-
Notifications
You must be signed in to change notification settings - Fork 220
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
feat: add ledger methods for faucet spending #6409
feat: add ledger methods for faucet spending #6409
Conversation
Test Results (CI) 3 files 123 suites 44m 26s ⏱️ Results for commit 30dcdee. ♻️ This comment has been updated with latest results. |
Test Results (Integration tests) 2 files + 2 11 suites +11 24m 24s ⏱️ + 24m 24s For more details on these failures, see this check. Results for commit 422c99a. ± Comparison against base commit 1bd2fde. ♻️ This comment has been updated with latest results. |
58dd9e9
to
63b5981
Compare
d30ef8f
to
86a80d3
Compare
48671e5
to
6ad33e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good
A few missed name changes but the key concept here is correct
applications/minotari_console_wallet/src/automation/commands.rs
Outdated
Show resolved
Hide resolved
applications/minotari_console_wallet/src/automation/commands.rs
Outdated
Show resolved
Hide resolved
applications/minotari_ledger_wallet/wallet/src/handlers/get_schnorr_signature.rs
Outdated
Show resolved
Hide resolved
} | ||
|
||
#[repr(u16)] | ||
#[derive(FromPrimitive, Debug, Copy, Clone, PartialEq)] | ||
pub enum AppSW { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is delcared twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, not ideal. To solve this I created a seperate crate for common types shared between the Ledger application and the rest of the code base.
- Added ledger methods to support faucet spending. - Consolidated h/w ledger support into the `minotari_ledger_wallet_comms` crate. - Added test methods for all h/w ledger functions in the form of an example.
2bf3c28
to
200b7dd
Compare
Description
minotari_ledger_wallet_comms
crate.Note: I do not think the ledger feature (#[cfg(feature = "ledger")]
) is nesseccary anymore. Any opinions?Motivation and Context
Faucet spending was not enabled on ledger devices.
How Has This Been Tested?
Compiled the ledger project
minotari_ledger_wallet
, uploaded the binaries to a ledger nano s device, then rancargo run --release --example ledger_demo
.What process can a PR reviewer use to test or verify this change?
minotari_ledger_wallet
, upload the binaries to a ledger nano s device, then runcargo run --release --example ledger_demo
.Breaking Changes