We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df55e1a commit c3a39d8Copy full SHA for c3a39d8
primitives/src/validator.rs
@@ -65,9 +65,7 @@ impl TryFrom<&str> for ValidatorId {
65
impl TryFrom<&String> for ValidatorId {
66
type Error = DomainError;
67
fn try_from(value: &String) -> Result<Self, Self::Error> {
68
- ValidatorId::try_from(value.as_str()).map_err(|_| {
69
- DomainError::InvalidArgument("Failed to deserialize validator id".to_string())
70
- })
+ ValidatorId::try_from(value.as_str())
71
}
72
73
0 commit comments