pakstr 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -122,18 +122,26 @@ class AmberSigner(
|
|
|
122
122
|
|
|
123
123
|
val event = JSONObject(eventJson)
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
val currentPubkey = event.optString("pubkey")
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
if (currentPubkey.isBlank()) {
|
|
128
|
+
|
|
129
|
+
val amberPubkey = getPublicKey()
|
|
130
|
+
|
|
131
|
+
require(amberPubkey.isNotBlank()) {
|
|
128
132
|
|
|
129
|
-
require(pubkey.isNotBlank()) {
|
|
130
133
|
"Amber returned empty pubkey"
|
|
134
|
+
|
|
131
135
|
}
|
|
132
136
|
|
|
133
137
|
event.put(
|
|
138
|
+
|
|
134
139
|
"pubkey",
|
|
135
|
-
|
|
140
|
+
|
|
141
|
+
amberPubkey
|
|
142
|
+
|
|
136
143
|
)
|
|
144
|
+
|
|
137
145
|
}
|
|
138
146
|
|
|
139
147
|
suspendCancellableCoroutine { continuation ->
|