@clonegod/ttd-sol-common 1.0.152 → 1.0.154

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.
@@ -583,9 +583,9 @@ class RpcClient {
583
583
  const serializedTransaction = transaction.serialize({ verifySignatures: false }).toString(encoding);
584
584
  let jito_region = process.env.JITO_REGION || region;
585
585
  let jitoApiUrl = `${types_1.JITO_API_URLS[jito_region]}/api/v1/bundles`;
586
- const send_tx_jito_url = process.env.SEND_TX_JITO_URL;
587
- const send_tx_jito_stratgy = process.env.SEND_TX_JITO_STRATEGY;
588
- if (send_tx_jito_url && send_tx_jito_stratgy === 'mul_ips') {
586
+ const send_tx_jito_url = process.env.SEND_TX_JITO_URL || '';
587
+ const send_tx_jito_stratgy = process.env.SEND_TX_JITO_STRATEGY || '';
588
+ if (!(0, dist_1.isEmpty)(send_tx_jito_url) && send_tx_jito_stratgy === 'mul_ips') {
589
589
  const send_result = yield (0, dist_1.postJSON)(send_tx_jito_url, {
590
590
  encoding,
591
591
  encoded_tx: serializedTransaction,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.152",
3
+ "version": "1.0.154",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",