Updated on 2026-08-14
This commit is contained in:
parent
85c11a5b80
commit
9395c20868
2 changed files with 2 additions and 4 deletions
|
|
@ -111,7 +111,7 @@ class TangemSdkManager(private val tangemSdk: TangemSdk, private val context: Co
|
|||
}
|
||||
|
||||
suspend fun derivePublicKeys(
|
||||
cardId: String,
|
||||
cardId: String?,
|
||||
derivations: Map<ByteArrayKey, List<DerivationPath>>,
|
||||
): CompletionResult<DerivationTaskResponse> {
|
||||
return runTaskAsyncReturnOnMain(DeriveMultipleWalletPublicKeysTask(derivations), cardId)
|
||||
|
|
|
|||
|
|
@ -207,9 +207,8 @@ class TokensMiddleware {
|
|||
}
|
||||
|
||||
scope.launch {
|
||||
val card = scanResponse.card
|
||||
val result = tangemSdkManager.derivePublicKeys(
|
||||
cardId = card.cardId,
|
||||
cardId = null,
|
||||
derivations = derivations,
|
||||
)
|
||||
when (result) {
|
||||
|
|
@ -232,7 +231,6 @@ class TokensMiddleware {
|
|||
|
||||
onSuccess(updatedScanResponse)
|
||||
}
|
||||
|
||||
is CompletionResult.Failure -> {
|
||||
store.dispatchDebugErrorNotification(TapError.CustomError("Error adding tokens"))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue