Skip to content

Commit

Permalink
Stake Withdrawals Minor Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay111meher committed Dec 17, 2024
1 parent c375a1e commit 4538f74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kalypso-cli/src/operations/stake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ impl Operation for ProcessWithdrawalRequests {
.map(|a| U256::from_dec_str(a.index.as_ref()).unwrap())
.collect();

if withdrawal_requests.len() == 0 {
return Err("No Pending Withdrawals available".to_string());
}

let withdrawal_transaction_hash = CommonDeps::send_and_confirm(
request_staking_info
.native_staking
Expand Down

0 comments on commit 4538f74

Please sign in to comment.