@primuslabs/fund-js-sdk 0.1.19 → 0.1.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
@@ -5939,7 +5939,7 @@ async function reClaim({
5939
5939
  _att = null;
5940
5940
  _dataBufferKey = dataBufferKey;
5941
5941
  }
5942
- tx = await redEnvelopeProgram.methods.reClaim(reId, _att).accounts({
5942
+ let instruction = await redEnvelopeProgram.methods.reClaim(reId, _att).accounts({
5943
5943
  state: redEnvelopePda,
5944
5944
  reRecord: reRecordPda,
5945
5945
  reRecordData,
@@ -5954,7 +5954,8 @@ async function reClaim({
5954
5954
  toTokenAccount,
5955
5955
  mint,
5956
5956
  tokenProgram
5957
- }).transaction();
5957
+ }).instruction();
5958
+ tx = new import_web33.Transaction().add(instruction);
5958
5959
  tx.feePayer = userKey;
5959
5960
  tx.recentBlockhash = (await provider.connection.getLatestBlockhash()).blockhash;
5960
5961
  console.log("UnSigned tx size:", tx.serialize({ requireAllSignatures: false, verifySignatures: false }).length, "bytes");
package/dist/index.mjs CHANGED
@@ -5912,7 +5912,7 @@ async function reClaim({
5912
5912
  _att = null;
5913
5913
  _dataBufferKey = dataBufferKey;
5914
5914
  }
5915
- tx = await redEnvelopeProgram.methods.reClaim(reId, _att).accounts({
5915
+ let instruction = await redEnvelopeProgram.methods.reClaim(reId, _att).accounts({
5916
5916
  state: redEnvelopePda,
5917
5917
  reRecord: reRecordPda,
5918
5918
  reRecordData,
@@ -5927,7 +5927,8 @@ async function reClaim({
5927
5927
  toTokenAccount,
5928
5928
  mint,
5929
5929
  tokenProgram
5930
- }).transaction();
5930
+ }).instruction();
5931
+ tx = new Transaction().add(instruction);
5931
5932
  tx.feePayer = userKey;
5932
5933
  tx.recentBlockhash = (await provider.connection.getLatestBlockhash()).blockhash;
5933
5934
  console.log("UnSigned tx size:", tx.serialize({ requireAllSignatures: false, verifySignatures: false }).length, "bytes");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primuslabs/fund-js-sdk",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "author": "Primus Labs <dev@primuslabs.org>",
5
5
  "description": "Primus fund js sdk",
6
6
  "repository": {