From 4538f740ddb4ca66f5f51ae9c65acce294b88dce Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 17 Dec 2024 13:11:38 +0000 Subject: [PATCH] Stake Withdrawals Minor Fixes --- kalypso-cli/src/operations/stake.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kalypso-cli/src/operations/stake.rs b/kalypso-cli/src/operations/stake.rs index 272cbf4..d07d3e8 100644 --- a/kalypso-cli/src/operations/stake.rs +++ b/kalypso-cli/src/operations/stake.rs @@ -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