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