diff --git a/contracts/whitelists/whitelist-merkletree/src/contract.rs b/contracts/whitelists/whitelist-merkletree/src/contract.rs index 27225fd23..6911f74f4 100644 --- a/contracts/whitelists/whitelist-merkletree/src/contract.rs +++ b/contracts/whitelists/whitelist-merkletree/src/contract.rs @@ -172,13 +172,9 @@ fn store_tree_uri( tree_uri: Option ) -> 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(())