Skip to content

Commit

Permalink
removed ipfs schema check for merkle-tree URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
kromsten committed Sep 22, 2023
1 parent 52ae74c commit 530b4b0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions contracts/whitelists/whitelist-merkletree/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,9 @@ fn store_tree_uri(
tree_uri: Option<String>
) -> Result<(), ContractError> {
if tree_uri.is_some() {
let parsed_token_uri = Url::parse(&tree_uri.as_ref().unwrap())
Url::parse(&tree_uri.as_ref().unwrap())
.map_err(|_| ContractError::InvalidMerkleTreeURI {})?;

if parsed_token_uri.scheme() != "ipfs" {
return Err(ContractError::InvalidMerkleTreeURI {});
}

MERKLE_TREE_URI.save(deps.storage, &tree_uri.unwrap())?
}
Ok(())
Expand Down

0 comments on commit 530b4b0

Please sign in to comment.