@clonegod/ttd-sol-common 1.0.120 → 1.0.122

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.
@@ -818,7 +818,7 @@ class RpcClient {
818
818
  params: {
819
819
  result: {
820
820
  signature: txid,
821
- slot: -1,
821
+ slot: 0,
822
822
  transaction: {
823
823
  transaction: {
824
824
  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.122",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",