From 02b3d815160dddd583f7293405994fc969478980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Prohaszka?= <104785785+sprohaszka-ledger@users.noreply.github.com> Date: Wed, 6 Nov 2024 12:25:28 +0100 Subject: [PATCH] [XRP] Undesired lib path import (#8312) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(xrp): undesired lib path import Signed-off-by: Stéphane Prohaszka --- .../coin-xrp/src/bridge/synchronization.test.ts | 6 +++--- .../coin-xrp/src/bridge/synchronization.ts | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libs/coin-modules/coin-xrp/src/bridge/synchronization.test.ts b/libs/coin-modules/coin-xrp/src/bridge/synchronization.test.ts index b8eccbe14193..1bdda1587282 100644 --- a/libs/coin-modules/coin-xrp/src/bridge/synchronization.test.ts +++ b/libs/coin-modules/coin-xrp/src/bridge/synchronization.test.ts @@ -1,8 +1,8 @@ -import { Account, SyncConfig } from "@ledgerhq/types-live"; -import { getAccountShape } from "./synchronization"; -import { AccountShapeInfo } from "@ledgerhq/coin-framework/lib/bridge/jsHelpers"; +import { AccountShapeInfo } from "@ledgerhq/coin-framework/bridge/jsHelpers"; import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/index"; +import { Account, SyncConfig } from "@ledgerhq/types-live"; import BigNumber from "bignumber.js"; +import { getAccountShape } from "./synchronization"; const mockGetServerInfos = jest.fn().mockResolvedValue({ info: { diff --git a/libs/coin-modules/coin-xrp/src/bridge/synchronization.ts b/libs/coin-modules/coin-xrp/src/bridge/synchronization.ts index b42f62191fa9..e396d5b27f3b 100644 --- a/libs/coin-modules/coin-xrp/src/bridge/synchronization.ts +++ b/libs/coin-modules/coin-xrp/src/bridge/synchronization.ts @@ -1,12 +1,12 @@ -import BigNumber from "bignumber.js"; -import { Operation } from "@ledgerhq/types-live"; import { encodeAccountId } from "@ledgerhq/coin-framework/account/index"; import { GetAccountShape, mergeOps } from "@ledgerhq/coin-framework/bridge/jsHelpers"; -import { getAccountInfo, getServerInfos } from "../network"; +import { encodeOperationId } from "@ledgerhq/coin-framework/operation"; +import { Operation } from "@ledgerhq/types-live"; +import BigNumber from "bignumber.js"; import { listOperations, parseAPIValue } from "../logic"; -import { encodeOperationId } from "@ledgerhq/coin-framework/lib/operation"; -import { AccountInfo } from "../types"; +import { getAccountInfo, getServerInfos } from "../network"; import { ServerInfoResponse } from "../network/types"; +import { AccountInfo } from "../types"; export const getAccountShape: GetAccountShape = async info => { const { address, initialAccount, currency, derivationMode } = info;