From 530b4b022bc7910c1ee3a4ad3e7f8131b839fd81 Mon Sep 17 00:00:00 2001 From: Martin Kromsten Date: Fri, 22 Sep 2023 18:59:42 +0200 Subject: [PATCH] removed ipfs schema check for merkle-tree URIs --- contracts/whitelists/whitelist-merkletree/src/contract.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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(())