flipmeme-sdk 1.2.19 → 1.2.20

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.js CHANGED
@@ -3111,7 +3111,7 @@ var SolanaConnector = class {
3111
3111
  SOLANA_PUBKEYS.LOOKUP_TABLE
3112
3112
  );
3113
3113
  const ejectTokens = (0, import_lodash2.sampleSize)(assets, nftInfos.length);
3114
- const infoById = import_lodash2.default.mapValues(import_lodash2.default.keyBy(nftInfos, "nftId"), "nftOwner");
3114
+ const infoById = import_lodash2.default.keyBy(nftInfos, "nftId");
3115
3115
  const merkleTreeAcount = yield import_spl_account_compression.ConcurrentMerkleTreeAccount.fromAccountAddress(
3116
3116
  this.config.provider.connection,
3117
3117
  new import_web35.PublicKey(merkleTree)
@@ -3129,7 +3129,7 @@ var SolanaConnector = class {
3129
3129
  const { compression, proof, root } = token;
3130
3130
  const { treeConfigPda: treeConfigPda2, collectionPda: collectionPda2, nftHolderPda: nftHolderPda2 } = yield getTradingAccounts(
3131
3131
  collectionId,
3132
- infoById[compression.leaf_id],
3132
+ new import_web35.PublicKey(infoById[compression.leaf_id].nftOnwer),
3133
3133
  this.program.programId,
3134
3134
  new import_web35.PublicKey(merkleTree),
3135
3135
  void 0
@@ -3153,7 +3153,7 @@ var SolanaConnector = class {
3153
3153
  merkleTreeConfig: treeConfigPda2,
3154
3154
  merkleTree: new import_web35.PublicKey(merkleTree),
3155
3155
  collection: collectionPda2,
3156
- nftOwner: new import_web35.PublicKey(infoById[compression.leaf_id]),
3156
+ nftOwner: new import_web35.PublicKey(infoById[compression.leaf_id].nftOnwer),
3157
3157
  nftHolder: nftHolderPda2,
3158
3158
  operator: this.config.wallet,
3159
3159
  compressionProgram: SOLANA_PUBKEYS.SPL_ACCOUNT_COMPRESSION_ID,
@@ -3168,7 +3168,7 @@ var SolanaConnector = class {
3168
3168
  }
3169
3169
  const { signatures } = yield this.sendTxnForBatch(transactions, lookupTableAccounts);
3170
3170
  } catch (e) {
3171
- console.log("ERRORR in getBuyInstructions", JSON.stringify(e));
3171
+ console.log("ERRORR in ejectAllNftsOfCollection", JSON.stringify(e));
3172
3172
  throw e;
3173
3173
  }
3174
3174
  });