Skip to content

Commit 2a36ce4

Browse files
authored
Merge pull request #2482 from CosmWasm/aw/fix-ibc2-ack-struct
Fix the IBC2 acknowledge struct
2 parents 1a082c7 + 5a45e22 commit 2a36ce4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/std/src/ibc2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pub struct Ibc2PacketAckMsg {
139139
pub source_client: String,
140140
pub destination_client: String,
141141
pub data: Ibc2Payload,
142-
pub acknowledgement: Vec<u8>,
142+
pub acknowledgement: Binary,
143143
pub relayer: Addr,
144144
}
145145

@@ -148,7 +148,7 @@ impl Ibc2PacketAckMsg {
148148
source_client: String,
149149
destination_client: String,
150150
data: Ibc2Payload,
151-
acknowledgement: Vec<u8>,
151+
acknowledgement: Binary,
152152
relayer: Addr,
153153
) -> Self {
154154
Self {

packages/std/src/testing/mock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ pub fn mock_ibc2_packet_ack(data: &impl Serialize) -> StdResult<Ibc2PacketAckMsg
683683
encoding: "json".to_string(),
684684
value: to_json_binary(data)?,
685685
},
686-
vec![],
686+
Binary::new(vec![]),
687687
Addr::unchecked("relayer"),
688688
))
689689
}

packages/vm/testdata/ibc2.wasm

94.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)