From 8dc622292de0d38e858c98c262ad770fae39cd52 Mon Sep 17 00:00:00 2001 From: AntonAndell Date: Mon, 6 Nov 2023 13:58:42 +0100 Subject: [PATCH] fix: 51 remove unnecessary address validation --- contracts/core-contracts/cw-asset-manager/src/contract.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contracts/core-contracts/cw-asset-manager/src/contract.rs b/contracts/core-contracts/cw-asset-manager/src/contract.rs index 34164a2..945d320 100644 --- a/contracts/core-contracts/cw-asset-manager/src/contract.rs +++ b/contracts/core-contracts/cw-asset-manager/src/contract.rs @@ -304,8 +304,7 @@ mod exec { from: String, data: Vec, ) -> Result { - let xcall = SOURCE_XCALL.load(deps.storage)?; - let x_call_addr = deps.api.addr_validate(xcall.as_ref())?; + let x_call_addr = SOURCE_XCALL.load(deps.storage)?; let x_network = X_CALL_NETWORK_ADDRESS.load(deps.storage)?; if info.sender != x_call_addr {