Skip to content

Commit

Permalink
Update some error meessage for ledger interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
delivan committed Nov 29, 2024
1 parent e7b1bab commit c0e3288
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions apps/extension/src/pages/sign/components/ledger-guide-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ export const LedgerGuideBox: FunctionComponent<{
}
}

if (appData["Starknet"]) {
app = "Starknet";
}

return (
<GuideBox
color="warning"
Expand Down
6 changes: 3 additions & 3 deletions apps/extension/src/pages/sign/utils/handle-starknet-sign.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
ErrCodeDeviceLocked,
ErrCodeUnsupportedApp,
ErrFailedGetPublicKey,
ErrFailedInit,
ErrFailedSign,
ErrModuleLedgerSign,
Expand Down Expand Up @@ -389,8 +389,8 @@ function handleLedgerResponse<R>(
case LedgerError.BadIns:
throw new KeplrError(
ErrModuleLedgerSign,
ErrCodeUnsupportedApp,
"Unsupported app"
ErrFailedGetPublicKey,
"Failed to get public key"
);
case LedgerError.UserRejected:
throw new KeplrError(
Expand Down

0 comments on commit c0e3288

Please sign in to comment.