@primuslabs/fund-js-sdk 0.1.18 → 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
@@ -5840,8 +5840,8 @@ async function reSend({
5840
5840
  const tx = new import_web33.Transaction().add(createIx).add(reRecordDataInitIx).add(reSendIx);
5841
5841
  tx.feePayer = userKey;
5842
5842
  tx.recentBlockhash = (await provider.connection.getLatestBlockhash()).blockhash;
5843
- tx.partialSign(spaceAccount);
5844
5843
  const signedTx = await provider.wallet.signTransaction(tx);
5844
+ signedTx.partialSign(spaceAccount);
5845
5845
  signatureStr = getTxSigStrFromTx(signedTx);
5846
5846
  const isOnChain = await getTxIsOnChain(signatureStr, provider.connection);
5847
5847
  if (isOnChain) {
@@ -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
@@ -5813,8 +5813,8 @@ async function reSend({
5813
5813
  const tx = new Transaction().add(createIx).add(reRecordDataInitIx).add(reSendIx);
5814
5814
  tx.feePayer = userKey;
5815
5815
  tx.recentBlockhash = (await provider.connection.getLatestBlockhash()).blockhash;
5816
- tx.partialSign(spaceAccount);
5817
5816
  const signedTx = await provider.wallet.signTransaction(tx);
5817
+ signedTx.partialSign(spaceAccount);
5818
5818
  signatureStr = getTxSigStrFromTx(signedTx);
5819
5819
  const isOnChain = await getTxIsOnChain(signatureStr, provider.connection);
5820
5820
  if (isOnChain) {
@@ -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.18",
3
+ "version": "0.1.20",
4
4
  "author": "Primus Labs <dev@primuslabs.org>",
5
5
  "description": "Primus fund js sdk",
6
6
  "repository": {