@primuslabs/fund-js-sdk 0.1.19 → 0.1.21

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,11 +5954,13 @@ 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");
5961
5962
  const signedTx = await provider.wallet.signTransaction(tx);
5963
+ signedTx.partialSign();
5962
5964
  signatureStr = getTxSigStrFromTx(signedTx);
5963
5965
  const isOnChain = await getTxIsOnChain(signatureStr, provider.connection);
5964
5966
  if (isOnChain) {
@@ -6040,6 +6042,7 @@ async function reSenderWithdraw({
6040
6042
  tx.feePayer = userKey;
6041
6043
  tx.recentBlockhash = (await provider.connection.getLatestBlockhash()).blockhash;
6042
6044
  const signedTx = await provider.wallet.signTransaction(tx);
6045
+ signedTx.partialSign();
6043
6046
  signatureStr = getTxSigStrFromTx(signedTx);
6044
6047
  const isOnChain = await getTxIsOnChain(signatureStr, provider.connection);
6045
6048
  if (isOnChain) {
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,11 +5927,13 @@ 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");
5934
5935
  const signedTx = await provider.wallet.signTransaction(tx);
5936
+ signedTx.partialSign();
5935
5937
  signatureStr = getTxSigStrFromTx(signedTx);
5936
5938
  const isOnChain = await getTxIsOnChain(signatureStr, provider.connection);
5937
5939
  if (isOnChain) {
@@ -6013,6 +6015,7 @@ async function reSenderWithdraw({
6013
6015
  tx.feePayer = userKey;
6014
6016
  tx.recentBlockhash = (await provider.connection.getLatestBlockhash()).blockhash;
6015
6017
  const signedTx = await provider.wallet.signTransaction(tx);
6018
+ signedTx.partialSign();
6016
6019
  signatureStr = getTxSigStrFromTx(signedTx);
6017
6020
  const isOnChain = await getTxIsOnChain(signatureStr, provider.connection);
6018
6021
  if (isOnChain) {
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.21",
4
4
  "author": "Primus Labs <dev@primuslabs.org>",
5
5
  "description": "Primus fund js sdk",
6
6
  "repository": {