From 5c4455f80b03991843e16c80c5af5a019db25227 Mon Sep 17 00:00:00 2001 From: chrisduma-ledger Date: Tue, 19 Nov 2024 16:00:36 +0200 Subject: [PATCH] feat: add changeset --- .changeset/young-coats-flash.md | 8 ++++++++ libs/ledger-live-common/src/wallet-api/Exchange/server.ts | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 .changeset/young-coats-flash.md diff --git a/.changeset/young-coats-flash.md b/.changeset/young-coats-flash.md new file mode 100644 index 000000000000..d28a74b61013 --- /dev/null +++ b/.changeset/young-coats-flash.md @@ -0,0 +1,8 @@ +--- +"ledger-live-desktop": minor +"live-mobile": minor +"@ledgerhq/live-common": minor +"@ledgerhq/wallet-api-exchange-module": minor +--- + +Fixes app install and refactors logic diff --git a/libs/ledger-live-common/src/wallet-api/Exchange/server.ts b/libs/ledger-live-common/src/wallet-api/Exchange/server.ts index 12014f2e17f4..43eecab52fa1 100644 --- a/libs/ledger-live-common/src/wallet-api/Exchange/server.ts +++ b/libs/ledger-live-common/src/wallet-api/Exchange/server.ts @@ -367,6 +367,10 @@ function extractSellStartParam( params: ExchangeStartSellParams, accounts: AccountLike[], ): ExchangeStartParamsUiRequest { + if (!("provider" in params)) { + throw new ExchangeError(createWrongSellParams(params)); + } + const realFromAccountId = getAccountIdFromWalletAccountId(params.fromAccountId); if (!realFromAccountId) {