@sats-connect/core 0.0.14 → 0.0.15-8fbc081
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.
- package/dist/index.mjs +12 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -208,7 +208,12 @@ var SatsConnectAdapter = class {
|
|
|
208
208
|
if (isMintSupported) {
|
|
209
209
|
const response = await this.requestInternal("runes_mint", params);
|
|
210
210
|
if (response) {
|
|
211
|
-
|
|
211
|
+
if (response.status === "success") {
|
|
212
|
+
return response;
|
|
213
|
+
}
|
|
214
|
+
if (response.status === "error" && response.error.code !== -32001 /* METHOD_NOT_SUPPORTED */) {
|
|
215
|
+
return response;
|
|
216
|
+
}
|
|
212
217
|
}
|
|
213
218
|
}
|
|
214
219
|
}
|
|
@@ -287,7 +292,12 @@ var SatsConnectAdapter = class {
|
|
|
287
292
|
if (isEtchSupported) {
|
|
288
293
|
const response = await this.requestInternal("runes_etch", params);
|
|
289
294
|
if (response) {
|
|
290
|
-
|
|
295
|
+
if (response.status === "success") {
|
|
296
|
+
return response;
|
|
297
|
+
}
|
|
298
|
+
if (response.status === "error" && response.error.code !== -32001 /* METHOD_NOT_SUPPORTED */) {
|
|
299
|
+
return response;
|
|
300
|
+
}
|
|
291
301
|
}
|
|
292
302
|
}
|
|
293
303
|
}
|