mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-23 22:01:01 +00:00
fix(core): correct range in error message
This commit is contained in:
parent
3a8e84a86e
commit
c5d22b4395
@ -94,7 +94,7 @@ STATIC mp_obj_t mod_trezorcrypto_slip39_get_word(mp_obj_t _index) {
|
|||||||
const char *word = get_word(index);
|
const char *word = get_word(index);
|
||||||
if (word == NULL) {
|
if (word == NULL) {
|
||||||
mp_raise_ValueError(
|
mp_raise_ValueError(
|
||||||
"Invalid wordlist index (range between 0 and 1024 is allowed)");
|
"Invalid wordlist index (range between 0 and 1023 is allowed)");
|
||||||
}
|
}
|
||||||
|
|
||||||
return mp_obj_new_str_copy(&mp_type_str, (const uint8_t *)word, strlen(word));
|
return mp_obj_new_str_copy(&mp_type_str, (const uint8_t *)word, strlen(word));
|
||||||
|
Loading…
Reference in New Issue
Block a user