From c0e328855e425add9ae9f67e27b6111e8fc51bb7 Mon Sep 17 00:00:00 2001 From: delivan Date: Fri, 29 Nov 2024 17:30:48 +0900 Subject: [PATCH] Update some error meessage for ledger interaction --- .../src/pages/sign/components/ledger-guide-box.tsx | 4 ++++ apps/extension/src/pages/sign/utils/handle-starknet-sign.ts | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/extension/src/pages/sign/components/ledger-guide-box.tsx b/apps/extension/src/pages/sign/components/ledger-guide-box.tsx index 1c90607b1e..fd5c5cd333 100644 --- a/apps/extension/src/pages/sign/components/ledger-guide-box.tsx +++ b/apps/extension/src/pages/sign/components/ledger-guide-box.tsx @@ -193,6 +193,10 @@ export const LedgerGuideBox: FunctionComponent<{ } } + if (appData["Starknet"]) { + app = "Starknet"; + } + return ( ( case LedgerError.BadIns: throw new KeplrError( ErrModuleLedgerSign, - ErrCodeUnsupportedApp, - "Unsupported app" + ErrFailedGetPublicKey, + "Failed to get public key" ); case LedgerError.UserRejected: throw new KeplrError(