@@ -6,12 +6,16 @@ use serde::{de::DeserializeOwned, Serialize};
6
6
use crate :: coin:: Coin ;
7
7
#[ cfg( feature = "iterator" ) ]
8
8
use crate :: iterator:: { Order , Record } ;
9
+ use crate :: metadata:: NullableDenomMetadata ;
9
10
use crate :: prelude:: * ;
10
11
#[ cfg( feature = "cosmwasm_1_2" ) ]
11
12
use crate :: query:: CodeInfoResponse ;
12
13
#[ cfg( feature = "cosmwasm_1_1" ) ]
13
14
use crate :: query:: SupplyResponse ;
14
- use crate :: query:: { AllBalanceResponse , BalanceResponse , BankQuery , CustomQuery , NullableDenomMetadataResponse , QueryRequest , WasmQuery } ;
15
+ use crate :: query:: {
16
+ AllBalanceResponse , BalanceResponse , BankQuery , CustomQuery , NullableDenomMetadataResponse ,
17
+ QueryRequest , WasmQuery ,
18
+ } ;
15
19
#[ cfg( feature = "staking" ) ]
16
20
use crate :: query:: {
17
21
AllDelegationsResponse , AllValidatorsResponse , BondedDenomResponse , Delegation ,
@@ -29,7 +33,6 @@ use crate::{Addr, CanonicalAddr};
29
33
#[ cfg( feature = "cosmwasm_1_3" ) ]
30
34
use crate :: { DenomMetadata , PageRequest } ;
31
35
use crate :: { RecoverPubkeyError , StdError , StdResult , VerificationError } ;
32
- use crate :: metadata:: NullableDenomMetadata ;
33
36
34
37
#[ derive( Clone , Copy , Debug ) ]
35
38
#[ non_exhaustive]
@@ -468,11 +471,14 @@ impl<'a, C: CustomQuery> QuerierWrapper<'a, C> {
468
471
}
469
472
470
473
#[ cfg( feature = "cosmwasm_1_3" ) ]
471
- pub fn query_nullable_denom_metadata ( & self , denom : impl Into < String > ) -> StdResult < NullableDenomMetadata > {
474
+ pub fn query_nullable_denom_metadata (
475
+ & self ,
476
+ denom : impl Into < String > ,
477
+ ) -> StdResult < NullableDenomMetadata > {
472
478
let request = BankQuery :: DenomMetadata {
473
479
denom : denom. into ( ) ,
474
480
}
475
- . into ( ) ;
481
+ . into ( ) ;
476
482
let res: NullableDenomMetadataResponse = self . query ( & request) ?;
477
483
Ok ( res. metadata )
478
484
}
0 commit comments