Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hedi-edelbloute committed Sep 6, 2024
1 parent ee424bb commit 8817e56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/coin-modules/coin-tron/src/logic/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Operation, OperationType } from "@ledgerhq/types-live";
import { OperationType } from "@ledgerhq/types-live";
import { TrongridTxInfo, TrongridTxType } from "../types";
import { txInfoToOperation } from "./utils";

Expand Down
3 changes: 1 addition & 2 deletions libs/coin-modules/coin-tron/src/network/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ export const formatTrongridTrc20TxResponse = (tx: Trc20API): TrongridTxInfo | nu
let txType: TrongridTxType;
let tokenId: string | undefined;
const fee = tx.detail.ret[0].fee || undefined;
let bnFee = new BigNumber(fee || 0);
const bnFee = new BigNumber(fee || 0);
let formattedValue;

switch (type) {
case "Approval":
txType = "ContractApproval";
formattedValue = bnFee;

break;
default:
txType = "TriggerSmartContract";
Expand Down

0 comments on commit 8817e56

Please sign in to comment.