You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "A custom acknowledgement type. The success type `T` depends on the PacketMsg variant.\n\nThis could be refactored to use [StdAck] at some point. However, it has a different success variant name (\"ok\" vs. \"result\") and a JSON payload instead of a binary payload.\n\n[StdAck]: https://github.com/CosmWasm/cosmwasm/issues/1512",
5
5
"oneOf": [
6
6
{
@@ -10,7 +10,7 @@
10
10
],
11
11
"properties": {
12
12
"ok": {
13
-
"$ref": "#/definitions/BalancesResponse"
13
+
"$ref": "#/definitions/BalanceResponse"
14
14
}
15
15
},
16
16
"additionalProperties": false
@@ -29,22 +29,19 @@
29
29
}
30
30
],
31
31
"definitions": {
32
-
"BalancesResponse": {
32
+
"BalanceResponse": {
33
33
"description": "This is the success response we send on ack for PacketMsg::Balance. Just acknowledge success or error",
use cosmwasm_std::{attr, coin, coins, from_json,BankMsg,OwnedDeps,WasmMsg};
387
363
@@ -638,7 +614,7 @@ mod tests {
638
614
// acknowledgement is an error
639
615
let ack:AcknowledgementMsg<DispatchResponse> =
640
616
from_json(res.acknowledgement.unwrap()).unwrap();
641
-
assert_eq!(ack.unwrap_err(),"invalid packet: Error parsing into type ibc_reflect::msg::PacketMsg: unknown variant `reflect_code_id`, expected one of `dispatch`, `who_am_i`, `balances`, `panic`, `return_err`, `return_msgs`, `no_ack` at line 1 column 18");
617
+
assert_eq!(ack.unwrap_err(),"invalid packet: Error parsing into type ibc_reflect::msg::PacketMsg: unknown variant `reflect_code_id`, expected one of `dispatch`, `who_am_i`, `balance`, `panic`, `return_err`, `return_msgs`, `no_ack` at line 1 column 18");
642
618
}
643
619
644
620
#[test]
@@ -658,38 +634,11 @@ mod tests {
658
634
let raw = query(deps.as_ref(),mock_env(),QueryMsg::ListAccounts{}).unwrap();
659
635
let res:ListAccountsResponse = from_json(raw).unwrap();
660
636
assert_eq!(1, res.accounts.len());
661
-
#[allow(deprecated)]
662
-
let balance = deps.as_ref().querier.query_all_balances(&account).unwrap();
663
-
assert_eq!(funds, balance);
664
637
665
638
// close the channel
666
639
let channel = mock_ibc_channel_close_init(channel_id,IbcOrder::Ordered,IBC_APP_VERSION);
667
640
let res = ibc_channel_close(deps.as_mut(),mock_env(), channel).unwrap();
668
-
669
-
// it pulls out all money from the reflect contract
670
-
assert_eq!(1, res.messages.len());
671
-
ifletCosmosMsg::Wasm(WasmMsg::Execute{
672
-
contract_addr, msg, ..
673
-
}) = &res.messages[0].msg
674
-
{
675
-
assert_eq!(contract_addr, account.as_str());
676
-
let reflect:ReflectExecuteMsg = from_json(msg).unwrap();
assert_eq!(ack.unwrap_err(),"invalid packet: Error parsing into type ibc_reflect::msg::PacketMsg: unknown variant `reflect_code_id`, expected one of `dispatch`, `who_am_i`, `balances`, `panic`, `return_err`, `return_msgs`, `no_ack` at line 1 column 18");
301
+
assert_eq!(ack.unwrap_err(),"invalid packet: Error parsing into type ibc_reflect::msg::PacketMsg: unknown variant `reflect_code_id`, expected one of `dispatch`, `who_am_i`, `balance`, `panic`, `return_err`, `return_msgs`, `no_ack` at line 1 column 18");
0 commit comments