From 1a03d51128fce425c0e1ed231dbfa3310bc280d9 Mon Sep 17 00:00:00 2001 From: Sarah GLINER Date: Mon, 13 Nov 2023 13:51:39 +0100 Subject: [PATCH] SwapError: use 0x6B00 for error status --- bitcoin_client/ledger_bitcoin/exception/device_exception.py | 2 +- src/boilerplate/sw.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoin_client/ledger_bitcoin/exception/device_exception.py b/bitcoin_client/ledger_bitcoin/exception/device_exception.py index 7ff8c522d..63c2333fd 100644 --- a/bitcoin_client/ledger_bitcoin/exception/device_exception.py +++ b/bitcoin_client/ledger_bitcoin/exception/device_exception.py @@ -12,7 +12,7 @@ class DeviceException(Exception): # pylint: disable=too-few-public-methods 0x6A82: NotSupportedError, 0x6A86: WrongP1P2Error, 0x6A87: WrongDataLengthError, - 0x6A8E: SwapError, + 0x6B00: SwapError, 0x6D00: InsNotSupportedError, 0x6E00: ClaNotSupportedError, 0xB000: WrongResponseLengthError, diff --git a/src/boilerplate/sw.h b/src/boilerplate/sw.h index 31ba2e952..a61516caa 100644 --- a/src/boilerplate/sw.h +++ b/src/boilerplate/sw.h @@ -39,7 +39,7 @@ /** * Status word for fail in Swap */ -#define SW_FAIL_SWAP 0x6A8E +#define SW_FAIL_SWAP 0x6B00 /** * Status word for unknown command with this INS.