mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-21 05:46:29 +01:00
fix: mint info
This commit is contained in:
@@ -167,6 +167,8 @@ impl Client {
|
||||
/// Get Mint Info [NUT-09]
|
||||
pub async fn get_info(&self) -> Result<MintInfo, Error> {
|
||||
let url = self.mint_url.join("info")?;
|
||||
Ok(minreq::get(url).send()?.json::<MintInfo>()?)
|
||||
let res = minreq::get(url).send()?.json::<Value>()?;
|
||||
|
||||
Ok(serde_json::from_value(res)?)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user