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
Firstly, add IdentifierError::InvalidNumericSuffix error indicating
identifiers which should be in ‘prefix-number’ having invalid numeric
suffix because a) it’s missing, b) is not a number or c) has leading
zero.
With that, update parse_chain_id_string to return that error when the
revision number is invalid.
Secondly, remove IdentifierError::Empty and ContainSeparator variants
as they are redundant. The former is a special case of InvalidLength;
the latter is a special case of InvalidCharacter.
With that, remove length checking from validate_identifier_chars
(which didn’t belong there anyway) and fix chain name checking in
ChainId::from_str.
0 commit comments