NUT-06: add urls field

This commit is contained in:
Pavol Rusnak
2024-10-11 14:54:29 +02:00
parent 260f262c39
commit b507ce7201
4 changed files with 17 additions and 3 deletions

View File

@@ -78,6 +78,7 @@ impl JsMintInfo {
contact: Option<Vec<JsContactInfo>>,
nuts: JsValue,
icon_url: Option<String>,
urls: Option<Vec<String>>,
motd: Option<String>,
time: Option<u64>,
) -> Result<JsMintInfo> {
@@ -92,6 +93,7 @@ impl JsMintInfo {
.map(|contacts| contacts.iter().map(|c| c.deref().clone()).collect()),
nuts: serde_wasm_bindgen::from_value(nuts).map_err(into_err)?,
icon_url,
urls,
motd,
time,
},