balancednetwork/balanced-rust-contracts

[Assetmanager Review] Unnecessary Addr Validation.

Closed this issue · 0 comments

Severity:

Informational

Description:

We should not need to validate address retrieved from storage but we have to make sure that only validated address are saved on storage

    let xcall = SOURCE_XCALL.load(deps.storage)?;
       let x_call_addr = deps.api.addr_validate(xcall.as_ref())?;
       let x_network = X_CALL_NETWORK_ADDRESS.load(deps.storage)?;


File Name:

contracts/core-contracts/cw-asset-manager/src/contract.rs Line No. 275