Skip to content

Commit

Permalink
Merge branch '2.0' into 500-error-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Feb 7, 2024
2 parents 965cb77 + 7bffac2 commit cc54773
Show file tree
Hide file tree
Showing 33 changed files with 909 additions and 772 deletions.
30 changes: 26 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions bindings/core/src/method_handler/secret_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,14 @@ where
}
#[cfg(feature = "ledger_nano")]
SecretManagerMethod::GetLedgerNanoStatus => {
if let Some(secret_manager) = secret_manager.downcast::<LedgerSecretManager>() {
Response::LedgerNanoStatus(secret_manager.get_ledger_nano_status().await)
let secret_manager = if let Some(secret_manager) = secret_manager.downcast::<LedgerSecretManager>() {
secret_manager
} else if let Some(SecretManager::LedgerNano(secret_manager)) = secret_manager.downcast::<SecretManager>() {
secret_manager
} else {
return Err(iota_sdk::client::Error::SecretManagerMismatch.into());
}
};
Response::LedgerNanoStatus(secret_manager.get_ledger_nano_status().await)
}
SecretManagerMethod::SignTransaction {
prepared_transaction_data,
Expand Down
Loading

0 comments on commit cc54773

Please sign in to comment.