@leofcoin/lib 1.2.20 → 1.2.21

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/exports/index.js CHANGED
@@ -34,6 +34,7 @@ const calculateFee = async (transaction, format = false) => {
34
34
  let fee = parseUnits(String(transaction.encoded.length));
35
35
  // fee per gb
36
36
  fee = fee.div(1073741824);
37
+ // fee = fee.div(1000000)
37
38
  return format ? formatUnits(fee.toString()) : fee;
38
39
  };
39
40
  const calculateTransactionFee = transaction => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/lib",
3
- "version": "1.2.20",
3
+ "version": "1.2.21",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "typings": "./exports/typings/index.d.ts",
package/src/index.ts CHANGED
@@ -49,6 +49,7 @@ export const calculateFee = async (transaction, format = false) => {
49
49
 
50
50
  // fee per gb
51
51
  fee = fee.div(1073741824)
52
+ // fee = fee.div(1000000)
52
53
 
53
54
  return format ? formatUnits(fee.toString()) : fee
54
55
  }