1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-15 09:02:02 +00:00

core: increase address length limit to accomodate CRW (fixes #1139)

This commit is contained in:
matejcik 2020-07-28 10:38:50 +02:00
parent d2a5bb5b34
commit 5385617eda
2 changed files with 10 additions and 1 deletions

View File

@ -44,7 +44,7 @@ typedef struct _mp_obj_HDNode_t {
STATIC const mp_obj_type_t mod_trezorcrypto_HDNode_type;
#define XPUB_MAXLEN 128
#define ADDRESS_MAXLEN 36
#define ADDRESS_MAXLEN 40
/// def __init__(
/// self,

View File

@ -238,3 +238,12 @@ def test_unknown_path(client):
)
# account number is too high
btc.get_address(client, "Bitcoin", parse_path("m/44'/0'/21'/0/0"))
@pytest.mark.altcoin
@pytest.mark.skip_ui
def test_crw(client):
assert (
btc.get_address(client, "Crown", parse_path("44'/72'/0'/0/0"))
== "CRWYdvZM1yXMKQxeN3hRsAbwa7drfvTwys48"
)