From 987c6ba88f6343e3e745069ad0d32faade15bb84 Mon Sep 17 00:00:00 2001 From: lambertkevin Date: Fri, 8 Apr 2022 11:32:40 +0200 Subject: [PATCH] Revert "Merge pull request #1853 from LedgerHQ/release/v22.0.0" This reverts commit 78650fe55c25ca6ec38bb9de893c286cc958da4d, reversing changes made to 7ef865dc771794fade3f9d452199e6cde161188f. --- src/families/bitcoin/transaction.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/families/bitcoin/transaction.ts b/src/families/bitcoin/transaction.ts index 37e1d0134e..e95d0ec3d0 100644 --- a/src/families/bitcoin/transaction.ts +++ b/src/families/bitcoin/transaction.ts @@ -1,5 +1,5 @@ import { BigNumber } from "bignumber.js"; -import bchaddr from "bchaddrjs"; +import { bchToCashaddrAddressWithoutPrefix } from "./logic"; import cashaddr from "cashaddrjs"; import type { Transaction, @@ -134,9 +134,6 @@ function bchExplicit(str: string): string { return str; } -const bchToCashaddrAddressWithoutPrefix = (recipient) => - recipient ? bchaddr.toCashAddress(recipient).split(":")[1] : recipient; - export type CoinLogic = { hasExtraData?: boolean; hasExpiryHeight?: boolean;