How to use the @ledgerhq/hw-transport.StatusCodes.INCORRECT_P1_P2 function in @ledgerhq/hw-transport

To help you get started, we’ve selected a few @ledgerhq/hw-transport examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LedgerHQ / ledger-live-common / src / libcore / signAndBroadcast.js View on Github external
}).catch(e => {
          if (e && e.statusCode === StatusCodes.INCORRECT_P1_P2) {
            throw new UpdateYourApp(`UpdateYourApp ${currency.id}`, currency);
          }
          throw e;
        })
      )
github LedgerHQ / ledger-live-mobile / src / libcore / signAndBroadcast.js View on Github external
}).catch(e => {
        if (e && e.statusCode === StatusCodes.INCORRECT_P1_P2) {
          throw new UpdateYourApp(`UpdateYourApp ${currency.id}`, currency);
        }
        throw e;
      });
    } finally {