@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.
|
@@ -7061,7 +7061,7 @@ merkleTree, confirmOptions) {
|
|
|
7061
7061
|
const compressedTokenAccounts = await rpc.getCompressedTokenAccountsByOwner(owner.publicKey, {
|
|
7062
7062
|
mint,
|
|
7063
7063
|
});
|
|
7064
|
-
const [inputAccounts] = selectMinCompressedTokenAccountsForTransfer(compressedTokenAccounts, amount);
|
|
7064
|
+
const [inputAccounts] = selectMinCompressedTokenAccountsForTransfer(compressedTokenAccounts.items, amount);
|
|
7065
7065
|
const proof = await rpc.getValidityProof(inputAccounts.map(account => stateless_js.bn(account.compressedAccount.hash)));
|
|
7066
7066
|
const ix = await CompressedTokenProgram.transfer({
|
|
7067
7067
|
payer: payer.publicKey,
|
|
@@ -7133,7 +7133,7 @@ merkleTree, confirmOptions) {
|
|
|
7133
7133
|
mint,
|
|
7134
7134
|
});
|
|
7135
7135
|
/// TODO: consider using a different selection algorithm
|
|
7136
|
-
const [inputAccounts] = selectMinCompressedTokenAccountsForTransfer(compressedTokenAccounts, amount);
|
|
7136
|
+
const [inputAccounts] = selectMinCompressedTokenAccountsForTransfer(compressedTokenAccounts.items, amount);
|
|
7137
7137
|
const proof = await rpc.getValidityProof(inputAccounts.map(account => stateless_js.bn(account.compressedAccount.hash)));
|
|
7138
7138
|
const ix = await CompressedTokenProgram.decompress({
|
|
7139
7139
|
payer: payer.publicKey,
|