removal of contracts experiemnt - clippy 3

This commit is contained in:
mfahampshire
2026-01-08 13:09:46 +00:00
parent 0b552d50bb
commit 9ddd56b2ca
2 changed files with 2 additions and 1 deletions
@@ -17,7 +17,7 @@ pub fn vk_share_fixture(owner: &str, index: u64) -> ContractVKShare {
node_index: index,
owner: Addr::unchecked(owner),
epoch_id: index,
verified: index % 2 == 0,
verified: index.is_multiple_of(2),
}
}
@@ -84,6 +84,7 @@ fn querier_handler(query: &WasmQuery) -> QuerierResult {
Ok(Cw4QueryMsg::Member { addr, at_height }) => {
let weight = GROUP_MEMBERS.lock().unwrap().iter().find_map(|(m, h)| {
if m.addr == addr {
#[allow(clippy::collapsible_if)]
if let Some(height) = at_height {
if height != *h {
return None;