|
1 | 1 | use cosmwasm_std::{ |
2 | | - entry_point, from_slice, to_binary, wasm_execute, BankMsg, Binary, ContractResult, CosmosMsg, |
3 | | - Deps, DepsMut, Empty, Env, Event, IbcBasicResponse, IbcChannelCloseMsg, IbcChannelConnectMsg, |
| 2 | + entry_point, from_slice, to_binary, wasm_execute, BankMsg, Binary, CosmosMsg, Deps, DepsMut, |
| 3 | + Empty, Env, Event, IbcBasicResponse, IbcChannelCloseMsg, IbcChannelConnectMsg, |
4 | 4 | IbcChannelOpenMsg, IbcOrder, IbcPacketAckMsg, IbcPacketReceiveMsg, IbcPacketTimeoutMsg, |
5 | 5 | IbcReceiveResponse, MessageInfo, Order, QueryResponse, Reply, Response, StdError, StdResult, |
6 | | - SubMsg, SubMsgExecutionResponse, WasmMsg, |
| 6 | + SubMsg, SubMsgExecutionResponse, SubMsgResult, WasmMsg, |
7 | 7 | }; |
8 | 8 |
|
9 | 9 | use crate::msg::{ |
@@ -35,10 +35,10 @@ pub fn instantiate( |
35 | 35 | #[entry_point] |
36 | 36 | pub fn reply(deps: DepsMut, _env: Env, reply: Reply) -> StdResult<Response> { |
37 | 37 | match (reply.id, reply.result) { |
38 | | - (RECEIVE_DISPATCH_ID, ContractResult::Err(err)) => { |
| 38 | + (RECEIVE_DISPATCH_ID, SubMsgResult::Err(err)) => { |
39 | 39 | Ok(Response::new().set_data(encode_ibc_error(err))) |
40 | 40 | } |
41 | | - (INIT_CALLBACK_ID, ContractResult::Ok(response)) => handle_init_callback(deps, response), |
| 41 | + (INIT_CALLBACK_ID, SubMsgResult::Ok(response)) => handle_init_callback(deps, response), |
42 | 42 | _ => Err(StdError::generic_err("invalid reply id or result")), |
43 | 43 | } |
44 | 44 | } |
@@ -387,7 +387,7 @@ mod tests { |
387 | 387 | // fake a reply and ensure this works |
388 | 388 | let response = Reply { |
389 | 389 | id, |
390 | | - result: ContractResult::Ok(SubMsgExecutionResponse { |
| 390 | + result: SubMsgResult::Ok(SubMsgExecutionResponse { |
391 | 391 | events: fake_events(&account), |
392 | 392 | data: None, |
393 | 393 | }), |
@@ -462,7 +462,7 @@ mod tests { |
462 | 462 | // fake a reply and ensure this works |
463 | 463 | let response = Reply { |
464 | 464 | id, |
465 | | - result: ContractResult::Ok(SubMsgExecutionResponse { |
| 465 | + result: SubMsgResult::Ok(SubMsgExecutionResponse { |
466 | 466 | events: fake_events(REFLECT_ADDR), |
467 | 467 | data: None, |
468 | 468 | }), |
|
0 commit comments