@clonegod/ttd-sol-common 1.0.120 → 1.0.123

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.
@@ -733,7 +733,6 @@ class RpcClient {
733
733
  }
734
734
  let err = new Error('Bundle failed to confirm within the timeout period:' + timeout + 'ms');
735
735
  (0, dist_1.log_error)(`Bundle failed to confirm, txid=${txid}`, err);
736
- throw err;
737
736
  }), 0);
738
737
  return txid;
739
738
  });
@@ -818,7 +817,7 @@ class RpcClient {
818
817
  params: {
819
818
  result: {
820
819
  signature: txid,
821
- slot: -1,
820
+ slot: 0,
822
821
  transaction: {
823
822
  transaction: {
824
823
  signatures: [txid]
@@ -42,7 +42,7 @@ class TransactionResultParser {
42
42
  }
43
43
  const base_fee = 5000;
44
44
  const total_fee = preBalances[0] - postBalances[0];
45
- const priority_fee = total_fee - base_fee;
45
+ const priority_fee = Math.abs(total_fee - base_fee);
46
46
  let gas_fee = {
47
47
  base_fee,
48
48
  priority_fee,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.120",
3
+ "version": "1.0.123",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",