@lightprotocol/compressed-token 0.7.0 → 0.8.0

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.
@@ -5038,7 +5038,7 @@ merkleTree, confirmOptions) {
5038
5038
  const compressedTokenAccounts = await rpc.getCompressedTokenAccountsByOwner(owner.publicKey, {
5039
5039
  mint,
5040
5040
  });
5041
- const [inputAccounts] = selectMinCompressedTokenAccountsForTransfer(compressedTokenAccounts, amount);
5041
+ const [inputAccounts] = selectMinCompressedTokenAccountsForTransfer(compressedTokenAccounts.items, amount);
5042
5042
  const proof = await rpc.getValidityProof(inputAccounts.map(account => stateless_js.bn(account.compressedAccount.hash)));
5043
5043
  const ix = await CompressedTokenProgram.transfer({
5044
5044
  payer: payer.publicKey,
@@ -5110,7 +5110,7 @@ merkleTree, confirmOptions) {
5110
5110
  mint,
5111
5111
  });
5112
5112
  /// TODO: consider using a different selection algorithm
5113
- const [inputAccounts] = selectMinCompressedTokenAccountsForTransfer(compressedTokenAccounts, amount);
5113
+ const [inputAccounts] = selectMinCompressedTokenAccountsForTransfer(compressedTokenAccounts.items, amount);
5114
5114
  const proof = await rpc.getValidityProof(inputAccounts.map(account => stateless_js.bn(account.compressedAccount.hash)));
5115
5115
  const ix = await CompressedTokenProgram.decompress({
5116
5116
  payer: payer.publicKey,