@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.
|
@@ -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,
|