mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-25 21:26:53 +02:00
Fixes issue on saving NIP47 address
This commit is contained in:
@@ -324,7 +324,7 @@ object LocalPreferences {
|
||||
)
|
||||
putString(
|
||||
PrefKeys.ZAP_PAYMENT_REQUEST_SERVER,
|
||||
EventMapper.mapper.writeValueAsString(settings.zapPaymentRequest),
|
||||
EventMapper.mapper.writeValueAsString(settings.zapPaymentRequest?.denormalize()),
|
||||
)
|
||||
if (settings.backupContactList != null) {
|
||||
putString(
|
||||
|
@@ -77,5 +77,7 @@ class Nip47WalletConnect {
|
||||
val pubKeyHex: HexKey,
|
||||
val relayUri: NormalizedRelayUrl,
|
||||
val secret: HexKey?,
|
||||
)
|
||||
) {
|
||||
fun denormalize(): Nip47URI? = Nip47URI(pubKeyHex, relayUri.url, secret)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user