Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
necipsagiro committed May 11, 2023
1 parent 89290dd commit 83a9ce7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tauri-build = { version = "1.3", features = [] }
[dependencies]
openssl = { version = "0.10", features = ["vendored"] }
tauri-cli = "1.3"
tauri = { version = "1.3", features = ["clipboard-all", "dialog-ask", "dialog-confirm", "dialog-message", "http-request", "process-relaunch", "shell-open", "updater"] }
tauri = { version = "1.3", features = ["clipboard-all", "dialog-ask", "dialog-confirm", "dialog-message", "http-request", "shell-open", "updater"] }
ssh2 = "0.9"

[features]
Expand Down
1 change: 0 additions & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,6 @@ fn withdraw_rewards(valoper_address: String, wallet_name: String) -> Result<Stri
.open_session
.channel_session()
.map_err(|e| e.to_string())?;
// $EXECUTE tx distribution withdraw-rewards $VALOPER_ADDRESS --from=$WALLET_NAME --commission --chain-id=$CHAIN_ID
channel.exec(&format!(
"yes '{password}' | bash -c -l '$EXECUTE tx distribution withdraw-rewards {valoper_address} --from={wallet_name} --commission --chain-id=$CHAIN_ID'",
password = my_boxed_session.walletpassword,
Expand Down
5 changes: 1 addition & 4 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
"https://www.googleapis.com/*",
"https://www.youtube.com/*"
]
},
"process": {
"relaunch": true
}
},
"bundle": {
Expand Down Expand Up @@ -78,7 +75,7 @@
},
"updater": {
"active": true,
"dialog": false,
"dialog": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDM1MUQ1OUI3RUYwODVDQUMKUldTc1hBanZ0MWtkTmZEekVYQlZNSDE0NTIyc2FlTVYwVmlrbjU5enRFaUttSTR6MTZmcklaSDQK",
"endpoints": [
"https://admin.node101.io/api/wizard"
Expand Down
12 changes: 1 addition & 11 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
const { tauri, dialog, clipboard, http, event: tevent, updater, process } = window.__TAURI__;

setTimeout(async () => {
const update = await updater.checkUpdate();
if (update.shouldUpdate) {
if (await dialog.confirm("Update available")) {
await updater.installUpdate();
await process.relaunch();
}
}
}, 1000);
const { tauri, dialog, clipboard, http, event: tevent } = window.__TAURI__;

// for development purposes
// localStorage.setItem("ipaddresses", '[{"ip":"144.91.93.154","icon":"Celestia Light","validator_addr":"celestia1087ym92534gj8jlwjqaa98mh6hqfgyzgmlwdct"},{"ip":"213.136.73.17","icon":"Nibiru","validator_addr":"nibi1y2kza3dstaqhk87p9yel5xyksa8atddmz6n63m"}]');
Expand Down

0 comments on commit 83a9ce7

Please sign in to comment.