|
1 | 1 | use cosmwasm_std::{ |
2 | | - attr, entry_point, from_slice, to_binary, wasm_execute, wasm_instantiate, BankMsg, Binary, |
3 | | - ContractResult, CosmosMsg, Deps, DepsMut, Empty, Env, Event, IbcAcknowledgement, |
4 | | - IbcBasicResponse, IbcChannel, IbcOrder, IbcPacket, IbcReceiveResponse, MessageInfo, Order, |
5 | | - QueryResponse, Reply, ReplyOn, Response, StdError, StdResult, SubMsg, SubcallResponse, |
| 2 | + attr, entry_point, from_slice, to_binary, wasm_execute, BankMsg, Binary, ContractResult, |
| 3 | + CosmosMsg, Deps, DepsMut, Empty, Env, Event, IbcAcknowledgement, IbcBasicResponse, IbcChannel, |
| 4 | + IbcOrder, IbcPacket, IbcReceiveResponse, MessageInfo, Order, QueryResponse, Reply, ReplyOn, |
| 5 | + Response, StdError, StdResult, SubMsg, SubcallResponse, WasmMsg, |
6 | 6 | }; |
7 | 7 |
|
8 | 8 | use crate::msg::{ |
@@ -160,9 +160,13 @@ pub fn ibc_channel_connect( |
160 | 160 | let cfg = config(deps.storage).load()?; |
161 | 161 | let chan_id = channel.endpoint.channel_id; |
162 | 162 |
|
163 | | - let label = format!("ibc-reflect-{}", &chan_id); |
164 | | - let msg = wasm_instantiate(cfg.reflect_code_id, b"{}", vec![], label)?; |
165 | | - |
| 163 | + let msg = WasmMsg::Instantiate { |
| 164 | + admin: None, |
| 165 | + code_id: cfg.reflect_code_id, |
| 166 | + msg: b"{}".into(), |
| 167 | + send: vec![], |
| 168 | + label: format!("ibc-reflect-{}", &chan_id), |
| 169 | + }; |
166 | 170 | let sub_msg = SubMsg { |
167 | 171 | id: INIT_CALLBACK_ID, |
168 | 172 | msg: msg.into(), |
|
0 commit comments