You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Felt::from_hex or deserializing, if the input is too long, the code panics.
Expected behavior:
I'd prefer it to return Err rather than panic because I can do nothing about that except write my own wrapper, which beats the purpose of having a unified Felt type.
Steps to reproduce:
E.g.:
Felt::from_hex(&format!("0x{}","f".repeat(65)))
But not just that, if you replace 65 with 63, it doesn't panic but gives this output:
Bug Report
types-rs version:
0.1.5
Current behavior:
When using
Felt::from_hex
or deserializing, if the input is too long, the code panics.Expected behavior:
I'd prefer it to return
Err
rather than panic because I can do nothing about that except write my own wrapper, which beats the purpose of having a unified Felt type.Steps to reproduce:
E.g.:
But not just that, if you replace
65
with63
, it doesn't panic but gives this output:Other information:
The text was updated successfully, but these errors were encountered: