This commit is contained in:
2026-07-27 16:29:25 +07:00
parent da7167013f
commit e85974497b
4 changed files with 12 additions and 11 deletions

View File

@@ -225,6 +225,11 @@ impl DeviceRegistry {
let keys = get_keys(&client, &signer).await?;
let content = keys.secret_key().to_bech32()?;
if cfg!(target_arch = "wasm32") {
return Err(anyhow!("Not supported"));
}
#[cfg(not(target_arch = "wasm32"))]
smol::fs::write(path, &content).await?;
Ok(())