Skip to content

Commit

Permalink
Merge pull request #1124 from greenart7c3/main
Browse files Browse the repository at this point in the history
Support for login with hex key when using amber
  • Loading branch information
vitorpamplona authored Oct 7, 2024
2 parents 38a9030 + baa9ee0 commit 28c9267
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ class AccountStateViewModel : ViewModel() {
is Nip19Bech32.NEmbed -> null
is Nip19Bech32.NRelay -> null
is Nip19Bech32.NAddress -> null
else -> null
else ->
try {
if (loginWithExternalSigner) Hex.decode(key) else null
} catch (e: Exception) {
null
}
}

if (loginWithExternalSigner && pubKeyParsed == null) {
Expand Down

0 comments on commit 28c9267

Please sign in to comment.