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

Commit

Permalink
Update gas adjustment and extra flags in delegate_token function
Browse files Browse the repository at this point in the history
  • Loading branch information
YakupAltay committed Apr 2, 2024
1 parent 05e0c89 commit ebda39f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -707,15 +707,15 @@ fn delegate_token(
.channel_session()
.map_err(|e| e.to_string())?;
channel.exec(&format!(
"yes '{password}' | bash -c -l '$EXECUTE tx {operation} delegate {validator_valoper} {amount}$DENOM --from={wallet_name} --fees={fees}$DENOM --chain-id=$CHAIN_ID --gas=auto --output json {extra}'",
"yes '{password}' | bash -c -l '$EXECUTE tx {operation} delegate {validator_valoper} {amount}$DENOM --from={wallet_name} --fees={fees}$DENOM --chain-id=$CHAIN_ID --gas-adjustment 1.4 --output json {extra}'",
password = my_boxed_session.walletpassword,
operation = match exception.as_str() {
"babylon" => "epoching",
_ => "staking",
},
extra = match exception.as_str() {
"babylon" => "--keyring-backend test --gas-adjustment 1.4 -y",
_ => "",
"babylon" => "-y",
_ => "--gas=auto -y",
}
)).map_err(|e| e.to_string())?;
let mut s = String::new();
Expand Down

0 comments on commit ebda39f

Please sign in to comment.