diff --git a/contracts/cosmwasm-vm/cw-xcall/src/handle_call_message.rs b/contracts/cosmwasm-vm/cw-xcall/src/handle_call_message.rs index f286ce55..2f732365 100644 --- a/contracts/cosmwasm-vm/cw-xcall/src/handle_call_message.rs +++ b/contracts/cosmwasm-vm/cw-xcall/src/handle_call_message.rs @@ -43,7 +43,7 @@ impl<'a> CwCallService<'a> { return Err(ContractError::ProtocolsMismatch); } - let to = request.to(); + let to = deps.api.addr_validate(request.to().as_str())?; if request.protocols().len() > 1 { let key = keccak256(data).to_vec(); diff --git a/contracts/cosmwasm-vm/cw-xcall/src/send_call_message.rs b/contracts/cosmwasm-vm/cw-xcall/src/send_call_message.rs index 98a567d3..8f2a56c8 100644 --- a/contracts/cosmwasm-vm/cw-xcall/src/send_call_message.rs +++ b/contracts/cosmwasm-vm/cw-xcall/src/send_call_message.rs @@ -55,7 +55,7 @@ impl<'a> CwCallService<'a> { let call_request = CallServiceMessageRequest::new( from, - to.account(), + deps.api.addr_validate(to.account().as_str())?, sequence_no, need_response, data.to_vec(),