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: correct the expected return errors in ledger demo #6506

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ fn main() {
},
Err(e) => {
if e != LedgerDeviceError::Processing(
"GetViewKey: Native HID transport error `Ledger device: Io error`".to_string(),
"Ledger application is not the 'Minotari Wallet' application (Ledger application not started)"
.to_string(),
) {
println!("\nError: Unexpected response ({})\n", e);
return;
Expand All @@ -355,7 +356,9 @@ fn main() {
},
Err(e) => {
if e != LedgerDeviceError::Processing(
"GetViewKey: Native HID transport error `Ledger device not found`".to_string(),
"Ledger application is not the 'Minotari Wallet' application (Processing error `2 GetAppName: Native \
HID transport error `Ledger device not found``)"
.to_string(),
) {
println!("\nError: Unexpected response ({})\n", e);
return;
Expand All @@ -373,7 +376,8 @@ fn main() {
},
Err(e) => {
if e != LedgerDeviceError::Processing(
"GetViewKey: Native HID transport error `Ledger device: Io error`".to_string(),
"Ledger application is not the 'Minotari Wallet' application (Ledger application not started)"
.to_string(),
) {
println!("\nError: Unexpected response ({})\n", e);
return;
Expand All @@ -387,7 +391,7 @@ fn main() {
match ledger_get_view_key(account) {
Ok(view_key_2) => {
println!("view_key: {}", view_key_2.to_hex());
assert_eq!(view_key_1, view_key_2, "View key not repeatable")
return;
},
Err(e) => {
println!("\nError: {}\n", e);
Expand Down
Loading