Skip to content

Commit

Permalink
Update gas adjustment for Babylon exception
Browse files Browse the repository at this point in the history
  • Loading branch information
necipsagiro committed Jan 31, 2024
1 parent 56b357b commit 6556a8c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,11 +674,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'",
"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 {extra}'",
password = my_boxed_session.walletpassword,
operation = match exception.as_str() {
"babylon" => "epoching",
_ => "staking",
},
extra = match exception.as_str() {
"babylon" => "--gas-adjustment 1.4",
_ => "",
}
)).map_err(|e| e.to_string())?;
let mut s = String::new();
Expand Down Expand Up @@ -708,7 +712,7 @@ fn redelegate_token(
operation = match exception.as_str() {
"babylon" => "epoching",
_ => "staking",
}
},
extra = match exception.as_str() {
"babylon" => "--gas-adjustment 1.4",
_ => "",
Expand Down

0 comments on commit 6556a8c

Please sign in to comment.