Merge pull request #1124 from greenart7c3/main
Support for login with hex key when using amber
This commit is contained in:
+6
-1
@@ -109,7 +109,12 @@ class AccountStateViewModel : ViewModel() {
|
|||||||
is Nip19Bech32.NEmbed -> null
|
is Nip19Bech32.NEmbed -> null
|
||||||
is Nip19Bech32.NRelay -> null
|
is Nip19Bech32.NRelay -> null
|
||||||
is Nip19Bech32.NAddress -> null
|
is Nip19Bech32.NAddress -> null
|
||||||
else -> null
|
else ->
|
||||||
|
try {
|
||||||
|
if (loginWithExternalSigner) Hex.decode(key) else null
|
||||||
|
} catch (e: Exception) {
|
||||||
|
null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (loginWithExternalSigner && pubKeyParsed == null) {
|
if (loginWithExternalSigner && pubKeyParsed == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user