@atomiqlabs/chain-solana 13.4.2 → 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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/chain-solana",
3
- "version": "13.4.2",
3
+ "version": "13.4.3",
4
4
  "description": "Solana specific base implementation",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -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
  }