1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-23 13:51:00 +00:00

fix(core): correct range in error message

This commit is contained in:
Christian Reitter 2022-07-01 14:34:11 +02:00 committed by matejcik
parent 3a8e84a86e
commit c5d22b4395

View File

@ -94,7 +94,7 @@ STATIC mp_obj_t mod_trezorcrypto_slip39_get_word(mp_obj_t _index) {
const char *word = get_word(index);
if (word == NULL) {
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));