Skip to content

Commit 8950461

Browse files
authored
Merge pull request #1624 from CosmWasm/ibc_querier-cleanup
IBC Querier follow-ups
2 parents c9cb354 + e32896d commit 8950461

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ and this project adheres to
66

77
## [Unreleased]
88

9+
### Added
10+
11+
- cosmwasm-std: Add an IBC querier implementation to `testing::MockQuerier`
12+
([#1620], [#1624]).
13+
14+
[#1620]: https://github.com/CosmWasm/cosmwasm/pull/1620
15+
[#1624]: https://github.com/CosmWasm/cosmwasm/pull/1624
16+
917
### Fixed
1018

1119
- all: Fix `backtraces` feature for newer versions of Rust. This still requires

packages/std/src/testing/mock.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ mod tests {
13371337
let ibc = IbcQuerier::new("myport", &[chan1.clone(), chan2.clone()]);
13381338

13391339
// query channels matching "my_port" (should match both above)
1340-
let query = &&IbcQuery::ListChannels {
1340+
let query = &IbcQuery::ListChannels {
13411341
port_id: Some("my_port".to_string()),
13421342
};
13431343
let raw = ibc.query(query).unwrap().unwrap();
@@ -1354,7 +1354,7 @@ mod tests {
13541354
let ibc = IbcQuerier::new("myport", &[chan1, chan2]);
13551355

13561356
// query channels matching "myport" (should be none)
1357-
let query = &&IbcQuery::ListChannels { port_id: None };
1357+
let query = &IbcQuery::ListChannels { port_id: None };
13581358
let raw = ibc.query(query).unwrap().unwrap();
13591359
let res: ListChannelsResponse = from_binary(&raw).unwrap();
13601360
assert_eq!(res.channels, vec![]);
@@ -1368,7 +1368,7 @@ mod tests {
13681368
let ibc = IbcQuerier::new("myport", &[chan1]);
13691369

13701370
// query channels matching "myport" (should be none)
1371-
let query = &&IbcQuery::PortId {};
1371+
let query = &IbcQuery::PortId {};
13721372
let raw = ibc.query(query).unwrap().unwrap();
13731373
let res: PortIdResponse = from_binary(&raw).unwrap();
13741374
assert_eq!(res.port_id, "myport");

0 commit comments

Comments
 (0)