mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-15 00:52:02 +00:00
core: increase address length limit to accomodate CRW (fixes #1139)
This commit is contained in:
parent
d2a5bb5b34
commit
5385617eda
@ -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,
|
||||
|
@ -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"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user