Closed Lohann closed 1 year ago
Steps to reproduce
eip55::validate_address("Îñţérñåţîöñåļîžåţîờñ");
Panics with:
byte index 1 is not a char boundary; it is inside 'Î' (bytes 0..2) of `Îñţérñåţîöñåļîžåţîờñ` thread 'project::test::check_invalid_addresses' panicked at 'byte index 1 is not a char boundary; it is inside 'Î' (bytes 0..2) of `Îñţérñåţîöñåļîžåţîờñ`'
I'm using the latest version:
eip55 = "0.3"
Actually any invalid string make it panic..
Also empty is considered a valid address:
assert!(eip55::validate_address(""));
Thanks for the report, I will try to have a PR for that in next week.
Steps to reproduce
Panics with:
I'm using the latest version: