@haven-fi/solauto-sdk 1.0.767 → 1.0.769

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.
@@ -225,7 +225,7 @@ async function spamSendTransactionUntilConfirmed(connection, transaction, blockh
225
225
  let transactionSignature;
226
226
  const sendTx = async () => {
227
227
  try {
228
- const txSignature = await connection.sendRawTransaction(Buffer.from(transaction.serialize()), { skipPreflight: true, maxRetries: 0 });
228
+ const txSignature = await connection.sendRawTransaction(Buffer.from(transaction.serialize()), { skipPreflight: true, maxRetries: 3 });
229
229
  if (!transactionSignature) {
230
230
  transactionSignature = txSignature;
231
231
  }
@@ -238,7 +238,7 @@ async function spamSendTransactionUntilConfirmed(connection, transaction, blockh
238
238
  await sendTx();
239
239
  }, spamInterval);
240
240
  if (!transactionSignature) {
241
- throw new Error("Failed to send");
241
+ throw new Error("No transaction signature found");
242
242
  }
243
243
  const resp = await connection
244
244
  .confirmTransaction({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.767",
3
+ "version": "1.0.769",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -393,7 +393,7 @@ async function spamSendTransactionUntilConfirmed(
393
393
  try {
394
394
  const txSignature = await connection.sendRawTransaction(
395
395
  Buffer.from(transaction.serialize()),
396
- { skipPreflight: true, maxRetries: 0 }
396
+ { skipPreflight: true, maxRetries: 3 }
397
397
  );
398
398
  if (!transactionSignature) {
399
399
  transactionSignature = txSignature;
@@ -409,7 +409,7 @@ async function spamSendTransactionUntilConfirmed(
409
409
  }, spamInterval);
410
410
 
411
411
  if (!transactionSignature) {
412
- throw new Error("Failed to send");
412
+ throw new Error("No transaction signature found");
413
413
  }
414
414
 
415
415
  const resp = await connection