Skip to content

Commit

Permalink
fix: address validation added (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcranju authored Sep 6, 2023
1 parent f1f02cc commit ac94b2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/cosmwasm-vm/cw-xcall/src/fee_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ impl<'a> CwCallService<'a> {
address: String,
) -> Result<Response, ContractError> {
self.ensure_admin(deps.storage, info.sender.clone())?;
deps.api.addr_validate(&address)?;
self.add_feehandler(deps.storage, &address)?;
Ok(Response::new().add_attribute("method", "set_protocol_feehandler"))
}
Expand Down

0 comments on commit ac94b2d

Please sign in to comment.