@@ -437,14 +437,11 @@ export class LedgerKeyring implements Keyring {
437437 throw new Error ( 'Ledger: User rejected the transaction' ) ;
438438 }
439439
440- /**
441- * for user rejected the transaction error
442- */
443440 if (
444- transportError . statusCode === 27013 &&
445- transportError . message . includes ( '(denied by the user?) (0x6985 )' )
441+ transportError . statusCode === 27264 &&
442+ transportError . message . includes ( 'Invalid data received (0x6a80 )' )
446443 ) {
447- throw new Error ( 'Ledger: User rejected the transaction ' ) ;
444+ throw new Error ( 'Ledger: Blind signing must be enabled ' ) ;
448445 }
449446 }
450447
@@ -495,16 +492,6 @@ export class LedgerKeyring implements Keyring {
495492 throw new Error ( 'Ledger: User rejected the transaction' ) ;
496493 }
497494 }
498- /**
499- * for user rejected the transaction error
500- */
501- if (
502- LedgerKeyring . #isLedgerError( error ) &&
503- error . errorCode === '6985' &&
504- error . message === 'Condition not satisfied'
505- ) {
506- throw new Error ( 'Ledger: User rejected the transaction' ) ;
507- }
508495
509496 throw error instanceof Error
510497 ? error
@@ -608,14 +595,11 @@ export class LedgerKeyring implements Keyring {
608595 throw new Error ( 'Ledger: User rejected the transaction' ) ;
609596 }
610597
611- /**
612- * for user rejected the transaction error
613- */
614598 if (
615- transportError . statusCode === 27013 &&
616- transportError . message . includes ( '(denied by the user?) (0x6985 )' )
599+ transportError . statusCode === 27264 &&
600+ transportError . message . includes ( 'Invalid data received (0x6a80 )' )
617601 ) {
618- throw new Error ( 'Ledger: User rejected the transaction ' ) ;
602+ throw new Error ( 'Ledger: Blind signing must be enabled ' ) ;
619603 }
620604 }
621605 throw error instanceof Error
0 commit comments