File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ impl AsyncClient {
380
380
381
381
/// Get an map where the key is the confirmation target (in number of blocks)
382
382
/// and the value is the estimated feerate (in sat/vB).
383
- pub async fn get_fee_estimates ( & self ) -> Result < HashMap < String , f64 > , Error > {
383
+ pub async fn get_fee_estimates ( & self ) -> Result < HashMap < u16 , f64 > , Error > {
384
384
let resp = self
385
385
. client
386
386
. get ( & format ! ( "{}/fee-estimates" , self . url, ) )
@@ -393,7 +393,7 @@ impl AsyncClient {
393
393
message : resp. text ( ) . await ?,
394
394
} )
395
395
} else {
396
- Ok ( resp. json :: < HashMap < String , f64 > > ( ) . await ?)
396
+ Ok ( resp. json :: < HashMap < u16 , f64 > > ( ) . await ?)
397
397
}
398
398
}
399
399
Original file line number Diff line number Diff line change @@ -343,15 +343,15 @@ impl BlockingClient {
343
343
344
344
/// Get an map where the key is the confirmation target (in number of blocks)
345
345
/// and the value is the estimated feerate (in sat/vB).
346
- pub fn get_fee_estimates ( & self ) -> Result < HashMap < String , f64 > , Error > {
346
+ pub fn get_fee_estimates ( & self ) -> Result < HashMap < u16 , f64 > , Error > {
347
347
let resp = self
348
348
. agent
349
349
. get ( & format ! ( "{}/fee-estimates" , self . url, ) )
350
350
. call ( ) ;
351
351
352
352
let map = match resp {
353
353
Ok ( resp) => {
354
- let map: HashMap < String , f64 > = resp. into_json ( ) ?;
354
+ let map: HashMap < u16 , f64 > = resp. into_json ( ) ?;
355
355
Ok ( map)
356
356
}
357
357
Err ( ureq:: Error :: Status ( code, resp) ) => Err ( Error :: HttpResponse {
You can’t perform that action at this time.
0 commit comments