fix: mint info

This commit is contained in:
thesimplekid
2023-05-06 12:13:07 -04:00
parent 92e91b7d9b
commit 8b9959073f
3 changed files with 8 additions and 6 deletions

View File

@@ -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)?)
}
}