Skip to content

Commit 3524ea9

Browse files
committed
fix(nftWithdraw): Fix amount send for metadata
1 parent 75ab8bd commit 3524ea9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sqds/cli",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "",
55
"main": "bin/index.js",
66
"scripts": {

src/lib/menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ class Menu{
10941094
try {
10951095
const {blockhash, lastValidBlockHeight} = await this.api.connection.getLatestBlockhash();
10961096
const txMetaTx = new Transaction({lastValidBlockHeight, blockhash, feePayer: this.wallet.publicKey});
1097-
const txMetaIx = await sendTxMetaIx(ms.publicKey, metasAdded.txPDA, this.wallet.publicKey, {type: 'nftMassWithdraw', amount: successfullyStagedMetas.length, destination}, this.txMetaProgramId);
1097+
const txMetaIx = await sendTxMetaIx(ms.publicKey, metasAdded.txPDA, this.wallet.publicKey, {type: 'nftMassWithdraw', amount: metasAdded.attached.length, destination}, this.txMetaProgramId);
10981098
txMetaTx.add(txMetaIx);
10991099
const signed = await this.wallet.signTransaction(txMetaTx);
11001100
const txid = await this.api.connection.sendRawTransaction(signed.serialize());

0 commit comments

Comments
 (0)