Skip to content

Commit

Permalink
Add get version interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyr committed Nov 20, 2024
1 parent c97c666 commit 879ca94
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mutiny-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,12 @@ impl MutinyWallet {
self.inner.is_safe_mode()
}

#[wasm_bindgen]
pub async fn get_version() -> String {
let version = env!("CARGO_PKG_VERSION");
version.to_string()
}

/// Returns if there is a saved wallet in storage.
/// This is checked by seeing if a mnemonic seed exists in storage.
#[wasm_bindgen]
Expand Down

0 comments on commit 879ca94

Please sign in to comment.