From ce39e1da2b89723198b372a6be6cc01c3806696b Mon Sep 17 00:00:00 2001 From: Michal Date: Mon, 9 Oct 2023 18:14:18 +0200 Subject: [PATCH] Use new yoroi lib --- apps/wallet-mobile/package.json | 2 +- .../src/yoroi-wallets/cardano/common/signatureUtils.ts | 4 +--- yarn.lock | 7 ++++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/apps/wallet-mobile/package.json b/apps/wallet-mobile/package.json index 8f14339f55..ccd4eba7b2 100644 --- a/apps/wallet-mobile/package.json +++ b/apps/wallet-mobile/package.json @@ -110,7 +110,7 @@ "@emurgo/csl-mobile-bridge": "^5.1.2", "@emurgo/react-native-blockies-svg": "^0.0.2", "@emurgo/react-native-hid": "^5.15.6", - "@emurgo/yoroi-lib": "file:/Users/michalszorad/Desktop/yoroi-lib", + "@emurgo/yoroi-lib": "0.10.1", "@formatjs/intl-datetimeformat": "^6.7.0", "@formatjs/intl-getcanonicallocales": "^2.1.0", "@formatjs/intl-locale": "^3.2.1", diff --git a/apps/wallet-mobile/src/yoroi-wallets/cardano/common/signatureUtils.ts b/apps/wallet-mobile/src/yoroi-wallets/cardano/common/signatureUtils.ts index f0f3dcf7dc..e5275ba468 100644 --- a/apps/wallet-mobile/src/yoroi-wallets/cardano/common/signatureUtils.ts +++ b/apps/wallet-mobile/src/yoroi-wallets/cardano/common/signatureUtils.ts @@ -131,9 +131,7 @@ export const createSwapCancellationLedgerPayload = async ( purpose: harden(1852), stakeVKHash, getUtxoAddressing: getAddressingByTxIdAndIndex, - getAddressAddressing: (address: string) => { - return getAddressing(address) - }, + getAddressAddressing: getAddressing, }) } diff --git a/yarn.lock b/yarn.lock index 931908c4de..06ad2b5345 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1635,7 +1635,6 @@ hoist-non-react-statics "^3.3.0" "@cardano-foundation/ledgerjs-hw-app-cardano@^5.0.0": - name "@cardano-foundation/ledgerjs-hw-app-cardanoV5" version "5.1.0" resolved "https://registry.yarnpkg.com/@cardano-foundation/ledgerjs-hw-app-cardano/-/ledgerjs-hw-app-cardano-5.1.0.tgz#69b94f7c5055bdb19aa719ff277fa5f683d11067" integrity sha512-ucuz/XbS/0ZD0Bal/GI/kiTm9jDIl8J+A7ypEqcAcBDGicFsyWmtPotOTwuDovTsiM8+eA/5OGTFX0oRqzxstQ== @@ -2017,8 +2016,10 @@ "@ledgerhq/logs" "^5.15.0" rxjs "^6.5.5" -"@emurgo/yoroi-lib@file:../yoroi-lib": - version "0.9.8" +"@emurgo/yoroi-lib@0.10.1": + version "0.10.1" + resolved "https://registry.yarnpkg.com/@emurgo/yoroi-lib/-/yoroi-lib-0.10.1.tgz#1c794311a0e07e9eed7f06010a0a77dd2b43f48a" + integrity sha512-g4azRsP8BbdVT6ibZ0BdtBtrn2jED172Zw7CwWhr5J6PNXptuv907zTGWGIFUHrrovKvYx0S6BBuM1lIIFsoKQ== dependencies: "@cardano-foundation/ledgerjs-hw-app-cardano" "^6.0.0" "@emurgo/cross-csl-core" "3.1.0"