File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -739,7 +739,8 @@ pub struct BankQuerier {
739
739
#[ allow( dead_code) ]
740
740
/// BTreeMap<denom, amount>
741
741
supplies : BTreeMap < String , Uint128 > ,
742
- /// BTreeMap<address, coins>
742
+ /// A map from address to balance. The address ist the String conversion of `Addr`,
743
+ /// i.e. the bech32 encoded address.
743
744
balances : BTreeMap < String , Vec < Coin > > ,
744
745
/// Vec<Metadata>
745
746
denom_metadata : BTreeMap < Vec < u8 > , DenomMetadata > ,
@@ -749,7 +750,7 @@ impl BankQuerier {
749
750
pub fn new ( balances : & [ ( & str , & [ Coin ] ) ] ) -> Self {
750
751
let balances: BTreeMap < _ , _ > = balances
751
752
. iter ( )
752
- . map ( |( s , c ) | ( s . to_string ( ) , c . to_vec ( ) ) )
753
+ . map ( |( address , balance ) | ( address . to_string ( ) , balance . to_vec ( ) ) )
753
754
. collect ( ) ;
754
755
755
756
BankQuerier {
You can’t perform that action at this time.
0 commit comments