Skip to content

Commit

Permalink
fix: 51 remove unnecessary address validation
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonAndell committed Nov 6, 2023
1 parent b1e7828 commit 8dc6222
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/core-contracts/cw-asset-manager/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,7 @@ mod exec {
from: String,
data: Vec<u8>,
) -> Result<Response, ContractError> {
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 {
Expand Down

0 comments on commit 8dc6222

Please sign in to comment.