Skip to content

Commit

Permalink
Remove check
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOmarA committed Sep 8, 2022
1 parent fbe2790 commit 109a519
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scrypto/src/resource/non_fungible_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ impl FromStr for NonFungibleAddress {
fn from_str(s: &str) -> Result<Self, Self::Err> {
let bytes =
hex::decode(s).map_err(|_| ParseNonFungibleAddressError::InvalidHex(s.to_owned()))?;
if bytes.get(0) != Some(&EntityType::Resource.id()) {
return Err(ParseNonFungibleAddressError::InvalidPrefix);
}
Self::try_from(bytes.as_ref())
}
}
Expand Down

0 comments on commit 109a519

Please sign in to comment.