@atomiqlabs/chain-solana 13.5.10 → 13.5.11
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.
|
@@ -139,7 +139,7 @@ class SolanaDataAccount extends SolanaSwapModule_1.SolanaSwapModule {
|
|
|
139
139
|
continue;
|
|
140
140
|
try {
|
|
141
141
|
const fetchedDataAccount = await this.connection.getAccountInfo(accountKey);
|
|
142
|
-
if (fetchedDataAccount == null) {
|
|
142
|
+
if (fetchedDataAccount == null || fetchedDataAccount.lamports === 0 || fetchedDataAccount.data.length === 0) {
|
|
143
143
|
await this.removeDataAccount(accountKey);
|
|
144
144
|
continue;
|
|
145
145
|
}
|
package/package.json
CHANGED
|
@@ -191,7 +191,7 @@ export class SolanaDataAccount extends SolanaSwapModule {
|
|
|
191
191
|
|
|
192
192
|
try {
|
|
193
193
|
const fetchedDataAccount = await this.connection.getAccountInfo(accountKey);
|
|
194
|
-
if(fetchedDataAccount==null) {
|
|
194
|
+
if(fetchedDataAccount==null || fetchedDataAccount.lamports===0 || fetchedDataAccount.data.length===0) {
|
|
195
195
|
await this.removeDataAccount(accountKey);
|
|
196
196
|
continue;
|
|
197
197
|
}
|