Skip to content

Commit

Permalink
PERA-1328 :: Fix account import QR code parsing (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltchuang authored Dec 16, 2024
1 parent 64838d0 commit 39ff04c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ internal class MnemonicQueryParser : DeepLinkQueryParser<String?> {

@Serializable
private data class MnemonicPayload(
@SerialName("version") val version: Double?,
@SerialName("version") val version: Double? = null,
@SerialName("mnemonic") val mnemonic: String
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ package com.algorand.common.deeplink.utils

import com.algorand.common.deeplink.model.PeraUri

private const val COINBASE_DEEPLINK_ROOT = "algo"
private const val COINBASE_DEEPLINK_ROOT = "algo:"

internal fun isCoinbaseDeepLink(uri: PeraUri): Boolean {
return uri.scheme.equals(COINBASE_DEEPLINK_ROOT, ignoreCase = true)
return uri.rawUri.startsWith(COINBASE_DEEPLINK_ROOT, ignoreCase = true)
}

0 comments on commit 39ff04c

Please sign in to comment.