@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.
package/dist/es/browser/index.js
CHANGED
|
@@ -7058,7 +7058,7 @@ merkleTree, confirmOptions) {
|
|
|
7058
7058
|
const compressedTokenAccounts = await rpc.getCompressedTokenAccountsByOwner(owner.publicKey, {
|
|
7059
7059
|
mint,
|
|
7060
7060
|
});
|
|
7061
|
-
const [inputAccounts] = selectMinCompressedTokenAccountsForTransfer(compressedTokenAccounts, amount);
|
|
7061
|
+
const [inputAccounts] = selectMinCompressedTokenAccountsForTransfer(compressedTokenAccounts.items, amount);
|
|
7062
7062
|
const proof = await rpc.getValidityProof(inputAccounts.map(account => bn(account.compressedAccount.hash)));
|
|
7063
7063
|
const ix = await CompressedTokenProgram.transfer({
|
|
7064
7064
|
payer: payer.publicKey,
|
|
@@ -7130,7 +7130,7 @@ merkleTree, confirmOptions) {
|
|
|
7130
7130
|
mint,
|
|
7131
7131
|
});
|
|
7132
7132
|
/// TODO: consider using a different selection algorithm
|
|
7133
|
-
const [inputAccounts] = selectMinCompressedTokenAccountsForTransfer(compressedTokenAccounts, amount);
|
|
7133
|
+
const [inputAccounts] = selectMinCompressedTokenAccountsForTransfer(compressedTokenAccounts.items, amount);
|
|
7134
7134
|
const proof = await rpc.getValidityProof(inputAccounts.map(account => bn(account.compressedAccount.hash)));
|
|
7135
7135
|
const ix = await CompressedTokenProgram.decompress({
|
|
7136
7136
|
payer: payer.publicKey,
|