@drift-labs/sdk 2.55.0-beta.2 → 2.55.0-beta.3

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.55.0-beta.2
1
+ 2.55.0-beta.3
@@ -58,9 +58,18 @@ class RetryTxSender extends baseTxSender_1.BaseTxSender {
58
58
  }
59
59
  }
60
60
  })();
61
- const result = await this.confirmTransaction(txid, opts.commitment);
62
- const slot = result.context.slot;
63
- stopWaiting();
61
+ let slot;
62
+ try {
63
+ const result = await this.confirmTransaction(txid, opts.commitment);
64
+ slot = result.context.slot;
65
+ // eslint-disable-next-line no-useless-catch
66
+ }
67
+ catch (e) {
68
+ throw e;
69
+ }
70
+ finally {
71
+ stopWaiting();
72
+ }
64
73
  return { txSig: txid, slot };
65
74
  }
66
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.55.0-beta.2",
3
+ "version": "2.55.0-beta.3",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -95,9 +95,16 @@ export class RetryTxSender extends BaseTxSender {
95
95
  }
96
96
  })();
97
97
 
98
- const result = await this.confirmTransaction(txid, opts.commitment);
99
- const slot = result.context.slot;
100
- stopWaiting();
98
+ let slot: number;
99
+ try {
100
+ const result = await this.confirmTransaction(txid, opts.commitment);
101
+ slot = result.context.slot;
102
+ // eslint-disable-next-line no-useless-catch
103
+ } catch (e) {
104
+ throw e;
105
+ } finally {
106
+ stopWaiting();
107
+ }
101
108
 
102
109
  return { txSig: txid, slot };
103
110
  }