@atomiqlabs/chain-solana 13.4.1 → 13.4.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.
|
@@ -63,7 +63,7 @@ class ConnectionWithRetries extends web3_js_1.Connection {
|
|
|
63
63
|
e?.message !== "Network request timed out" &&
|
|
64
64
|
e?.message !== "Too many requests (429)", init?.signal ?? undefined);
|
|
65
65
|
config.disableRetryOnRateLimit = true;
|
|
66
|
-
super(endpoint,
|
|
66
|
+
super(endpoint, config);
|
|
67
67
|
this.retryPolicy = config?.retryPolicy;
|
|
68
68
|
this.requestTimeout = config?.requestTimeout ?? 15 * 1000;
|
|
69
69
|
}
|
|
@@ -137,7 +137,7 @@ class SolanaDataAccount extends SolanaSwapModule_1.SolanaSwapModule {
|
|
|
137
137
|
continue;
|
|
138
138
|
try {
|
|
139
139
|
const fetchedDataAccount = await this.connection.getAccountInfo(accountKey);
|
|
140
|
-
if (fetchedDataAccount == null) {
|
|
140
|
+
if (fetchedDataAccount == null || fetchedDataAccount.lamports === 0 || fetchedDataAccount.data.length === 0) {
|
|
141
141
|
await this.removeDataAccount(accountKey);
|
|
142
142
|
continue;
|
|
143
143
|
}
|
package/package.json
CHANGED
|
@@ -88,7 +88,7 @@ export class ConnectionWithRetries extends Connection {
|
|
|
88
88
|
);
|
|
89
89
|
config.disableRetryOnRateLimit = true;
|
|
90
90
|
|
|
91
|
-
super(endpoint,
|
|
91
|
+
super(endpoint, config);
|
|
92
92
|
this.retryPolicy = config?.retryPolicy;
|
|
93
93
|
this.requestTimeout = config?.requestTimeout ?? 15*1000;
|
|
94
94
|
}
|
|
@@ -189,7 +189,7 @@ export class SolanaDataAccount extends SolanaSwapModule {
|
|
|
189
189
|
|
|
190
190
|
try {
|
|
191
191
|
const fetchedDataAccount = await this.connection.getAccountInfo(accountKey);
|
|
192
|
-
if(fetchedDataAccount==null) {
|
|
192
|
+
if(fetchedDataAccount==null || fetchedDataAccount.lamports===0 || fetchedDataAccount.data.length===0) {
|
|
193
193
|
await this.removeDataAccount(accountKey);
|
|
194
194
|
continue;
|
|
195
195
|
}
|