Skip to content

Commit

Permalink
rusk-wallet: Update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Daksh14 committed Jan 29, 2025
1 parent e13ad6f commit 611a4aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 6 additions & 0 deletions rusk-wallet/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Change dependency declaration to not require strict equal [#3405]

### Fix

- Fix wrong lower limit for stake operation when performing topup [#3394]

## [0.1.0] - 2025-01-20

### Add
Expand Down Expand Up @@ -42,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix stake info for inactive stakes with rewards [#2766]
- Fix Moonlight stake reward withdrawal [#2523]


<!-- Issues -->
[#3405]: https://github.com/dusk-network/rusk/issues/3405
[#3263]: https://github.com/dusk-network/rusk/issues/3263
Expand All @@ -63,6 +68,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#2396]: https://github.com/dusk-network/rusk/issues/2396
[#2340]: https://github.com/dusk-network/rusk/issues/2340
[#2288]: https://github.com/dusk-network/rusk/issues/2288
[#3394]: https://github.com/dusk-network/rusk/issues/3394

<!-- Releases -->
[Unreleased]: https://github.com/dusk-network/rusk/compare/rusk-wallet-0.1.0...HEAD
Expand Down
6 changes: 2 additions & 4 deletions rusk-wallet/src/bin/interactive/command_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,8 @@ pub(crate) async fn online(
.public_key(stake_idx)
.expect("public key to exists in interactive mode");

let mut has_stake = match wallet.check_stake_exists(stake_pk) {
Ok(x) => x,
Err(_) => false,
};
let has_stake =
wallet.check_stake_exists(stake_pk).await.unwrap_or(false);

let owner = match wallet.find_stake_owner_account(stake_pk).await {
Ok(account) => account,
Expand Down
2 changes: 1 addition & 1 deletion rusk-wallet/src/wallet/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ impl<F: SecureWalletFile + Debug> Wallet<F> {
&self,
stake_pk: &BlsPublicKey,
) -> Result<bool, Error> {
let stake = self.state()?.fetch_stake(pk).await?;
let stake = self.state()?.fetch_stake(stake_pk).await?;

let exists = if let Some(stake) = stake {
stake.amount.is_some()
Expand Down

0 comments on commit 611a4aa

Please sign in to comment.