refactor(bindings): amount getter

This commit is contained in:
thesimplekid
2024-05-08 14:03:21 +01:00
parent 8fbd778e58
commit 9f9aca9f6f

View File

@@ -45,4 +45,9 @@ impl JsAmount {
pub fn split(&self) -> Result<JsValue> {
serde_wasm_bindgen::to_value(&self.inner.split()).map_err(into_err)
}
#[wasm_bindgen(getter)]
pub fn value(&self) -> u64 {
self.inner.into()
}
}