@atomiqlabs/chain-solana 12.0.6 → 12.0.7
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.
|
@@ -53,7 +53,7 @@ class SolanaEvents extends SolanaModule_1.SolanaModule {
|
|
|
53
53
|
}
|
|
54
54
|
]).catch(e => {
|
|
55
55
|
//Catching not supported errors
|
|
56
|
-
if (e.message != null && (e.message.includes("-32601") || e.message.includes("-32600"))) {
|
|
56
|
+
if (e.message != null && (e.message.includes("-32601") || e.message.includes("-32600") || e.message.includes("-32403"))) {
|
|
57
57
|
return {
|
|
58
58
|
error: {
|
|
59
59
|
code: -32601,
|
|
@@ -65,7 +65,7 @@ class SolanaEvents extends SolanaModule_1.SolanaModule {
|
|
|
65
65
|
});
|
|
66
66
|
if (response.error != null) {
|
|
67
67
|
//Catching not supported errors
|
|
68
|
-
if (response.error.code !== -32601 && response.error.code !== -32600)
|
|
68
|
+
if (response.error.code !== -32601 && response.error.code !== -32600 && response.error.code !== -32403)
|
|
69
69
|
throw new Error(response.error.message);
|
|
70
70
|
return null;
|
|
71
71
|
}
|
package/package.json
CHANGED
|
@@ -68,7 +68,7 @@ export class SolanaEvents extends SolanaModule {
|
|
|
68
68
|
}
|
|
69
69
|
]).catch(e => {
|
|
70
70
|
//Catching not supported errors
|
|
71
|
-
if(e.message!=null && (e.message.includes("-32601") || e.message.includes("-32600"))) {
|
|
71
|
+
if(e.message!=null && (e.message.includes("-32601") || e.message.includes("-32600") || e.message.includes("-32403"))) {
|
|
72
72
|
return {
|
|
73
73
|
error: {
|
|
74
74
|
code: -32601,
|
|
@@ -81,7 +81,7 @@ export class SolanaEvents extends SolanaModule {
|
|
|
81
81
|
|
|
82
82
|
if(response.error!=null) {
|
|
83
83
|
//Catching not supported errors
|
|
84
|
-
if(response.error.code!==-32601 && response.error.code!==-32600) throw new Error(response.error.message);
|
|
84
|
+
if(response.error.code!==-32601 && response.error.code!==-32600 && response.error.code!==-32403) throw new Error(response.error.message);
|
|
85
85
|
return null;
|
|
86
86
|
}
|
|
87
87
|
|