We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edada3e commit fdae562Copy full SHA for fdae562
packages/std/src/testing/mock.rs
@@ -1,5 +1,6 @@
1
use alloc::collections::BTreeMap;
2
use bech32::{encode, ToBase32, Variant};
3
+use core::iter::IntoIterator;
4
use core::marker::PhantomData;
5
#[cfg(feature = "cosmwasm_1_3")]
6
use core::ops::Bound;
@@ -998,9 +999,12 @@ pub struct DistributionQuerier {
998
999
1000
1001
impl DistributionQuerier {
- pub fn new(withdraw_addresses: HashMap<String, String>) -> Self {
1002
+ pub fn new<T>(withdraw_addresses: T) -> Self
1003
+ where
1004
+ T: IntoIterator<Item = (String, String)>,
1005
+ {
1006
DistributionQuerier {
- withdraw_addresses,
1007
+ withdraw_addresses: withdraw_addresses.into_iter().collect(),
1008
..Default::default()
1009
}
1010
0 commit comments