@sats-connect/core 0.0.15-87cf6c7 → 0.0.15-c57ac78
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 +7 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -211,7 +211,7 @@ var SatsConnectAdapter = class {
|
|
|
211
211
|
if (response.status === "success") {
|
|
212
212
|
return response;
|
|
213
213
|
}
|
|
214
|
-
if (response.status === "error" && response.error.code !== -
|
|
214
|
+
if (response.status === "error" && response.error.code !== -32601 /* METHOD_NOT_FOUND */) {
|
|
215
215
|
return response;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -292,7 +292,12 @@ var SatsConnectAdapter = class {
|
|
|
292
292
|
if (isEtchSupported) {
|
|
293
293
|
const response = await this.requestInternal("runes_etch", params);
|
|
294
294
|
if (response) {
|
|
295
|
-
|
|
295
|
+
if (response.status === "success") {
|
|
296
|
+
return response;
|
|
297
|
+
}
|
|
298
|
+
if (response.status === "error" && response.error.code !== -32601 /* METHOD_NOT_FOUND */) {
|
|
299
|
+
return response;
|
|
300
|
+
}
|
|
296
301
|
}
|
|
297
302
|
}
|
|
298
303
|
}
|