@primuslabs/fund-js-sdk 0.1.20 → 0.1.22
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 +5 -12
- package/dist/index.mjs +5 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5958,8 +5958,11 @@ async function reClaim({
|
|
|
5958
5958
|
tx = new import_web33.Transaction().add(instruction);
|
|
5959
5959
|
tx.feePayer = userKey;
|
|
5960
5960
|
tx.recentBlockhash = (await provider.connection.getLatestBlockhash()).blockhash;
|
|
5961
|
+
signatureStr = await provider.sendAndConfirm(tx);
|
|
5962
|
+
return resolve(signatureStr);
|
|
5961
5963
|
console.log("UnSigned tx size:", tx.serialize({ requireAllSignatures: false, verifySignatures: false }).length, "bytes");
|
|
5962
5964
|
const signedTx = await provider.wallet.signTransaction(tx);
|
|
5965
|
+
signedTx.partialSign();
|
|
5963
5966
|
signatureStr = getTxSigStrFromTx(signedTx);
|
|
5964
5967
|
const isOnChain = await getTxIsOnChain(signatureStr, provider.connection);
|
|
5965
5968
|
if (isOnChain) {
|
|
@@ -6040,18 +6043,8 @@ async function reSenderWithdraw({
|
|
|
6040
6043
|
}).transaction();
|
|
6041
6044
|
tx.feePayer = userKey;
|
|
6042
6045
|
tx.recentBlockhash = (await provider.connection.getLatestBlockhash()).blockhash;
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
const isOnChain = await getTxIsOnChain(signatureStr, provider.connection);
|
|
6046
|
-
if (isOnChain) {
|
|
6047
|
-
console.log("reSenderWithdraw done", signatureStr);
|
|
6048
|
-
return resolve(signatureStr);
|
|
6049
|
-
} else {
|
|
6050
|
-
const serializeSignedTx = signedTx.serialize();
|
|
6051
|
-
signatureStr = await provider.connection.sendRawTransaction(serializeSignedTx);
|
|
6052
|
-
console.log("reSenderWithdraw done", signatureStr);
|
|
6053
|
-
return resolve(signatureStr);
|
|
6054
|
-
}
|
|
6046
|
+
signatureStr = await provider.sendAndConfirm(tx);
|
|
6047
|
+
return resolve(signatureStr);
|
|
6055
6048
|
} catch (err) {
|
|
6056
6049
|
if (getTxIsOnProcess(err)) {
|
|
6057
6050
|
console.log("reSenderWithdraw done");
|
package/dist/index.mjs
CHANGED
|
@@ -5931,8 +5931,11 @@ async function reClaim({
|
|
|
5931
5931
|
tx = new Transaction().add(instruction);
|
|
5932
5932
|
tx.feePayer = userKey;
|
|
5933
5933
|
tx.recentBlockhash = (await provider.connection.getLatestBlockhash()).blockhash;
|
|
5934
|
+
signatureStr = await provider.sendAndConfirm(tx);
|
|
5935
|
+
return resolve(signatureStr);
|
|
5934
5936
|
console.log("UnSigned tx size:", tx.serialize({ requireAllSignatures: false, verifySignatures: false }).length, "bytes");
|
|
5935
5937
|
const signedTx = await provider.wallet.signTransaction(tx);
|
|
5938
|
+
signedTx.partialSign();
|
|
5936
5939
|
signatureStr = getTxSigStrFromTx(signedTx);
|
|
5937
5940
|
const isOnChain = await getTxIsOnChain(signatureStr, provider.connection);
|
|
5938
5941
|
if (isOnChain) {
|
|
@@ -6013,18 +6016,8 @@ async function reSenderWithdraw({
|
|
|
6013
6016
|
}).transaction();
|
|
6014
6017
|
tx.feePayer = userKey;
|
|
6015
6018
|
tx.recentBlockhash = (await provider.connection.getLatestBlockhash()).blockhash;
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
const isOnChain = await getTxIsOnChain(signatureStr, provider.connection);
|
|
6019
|
-
if (isOnChain) {
|
|
6020
|
-
console.log("reSenderWithdraw done", signatureStr);
|
|
6021
|
-
return resolve(signatureStr);
|
|
6022
|
-
} else {
|
|
6023
|
-
const serializeSignedTx = signedTx.serialize();
|
|
6024
|
-
signatureStr = await provider.connection.sendRawTransaction(serializeSignedTx);
|
|
6025
|
-
console.log("reSenderWithdraw done", signatureStr);
|
|
6026
|
-
return resolve(signatureStr);
|
|
6027
|
-
}
|
|
6019
|
+
signatureStr = await provider.sendAndConfirm(tx);
|
|
6020
|
+
return resolve(signatureStr);
|
|
6028
6021
|
} catch (err) {
|
|
6029
6022
|
if (getTxIsOnProcess(err)) {
|
|
6030
6023
|
console.log("reSenderWithdraw done");
|