Skip to content

Commit

Permalink
test: Make into_cosmos_msg generic
Browse files Browse the repository at this point in the history
  • Loading branch information
abefernan committed Aug 5, 2024
1 parent 738c241 commit cfc82a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/contracts/cw20-base/src/responses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl Cw20ReceiveMsg {
}

/// creates a cosmos_msg sending this struct to the named contract
pub fn into_cosmos_msg<T: Into<String>>(self, contract_addr: T) -> StdResult<CosmosMsg> {
pub fn into_cosmos_msg<T: Into<String>, E>(self, contract_addr: T) -> StdResult<CosmosMsg<E>> {
let msg = self.into_json_binary()?;
let execute = WasmMsg::Execute {
contract_addr: contract_addr.into(),
Expand Down

0 comments on commit cfc82a5

Please sign in to comment.