Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en committed Nov 13, 2024
1 parent 97997cc commit e835e84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion near/omni-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl FromStr for H160 {
} else {
s
};
let result = Vec::from_hex(s).map_err(|err| err.to_string())?;
let result = Vec::from_hex(s).map_err(|_| "ERR_INVALIDE_HEX")?;
Ok(H160(
result
.try_into()
Expand Down
2 changes: 1 addition & 1 deletion near/omni-types/src/tests/lib_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ fn test_omni_address_from_str() {
),
(
"invalid_format".to_string(),
Err("Invalid OmniAddress format".to_string()),
Err("ERR_INVALIDE_HEX".to_string()),
"Should fail on missing chain prefix",
),
(
Expand Down

0 comments on commit e835e84

Please sign in to comment.