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

Commit

Permalink
Merge pull request #205 from dusk-network/staking-display-204
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia authored Sep 25, 2023
2 parents 051acba + 640a9b0 commit 1fafb35
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fix staking address display [#204]

## [0.19.0] - 2023-09-20

### Added
Expand Down Expand Up @@ -426,6 +430,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Implementation of `Store` trait from `wallet-core`
- Implementation of `State` and `Prover` traits from `wallet-core`

[#204]: https://github.com/dusk-network/wallet-cli/issues/204
[#182]: https://github.com/dusk-network/wallet-cli/issues/182
[#198]: https://github.com/dusk-network/wallet-cli/issues/198
[#176]: https://github.com/dusk-network/wallet-cli/issues/176
Expand Down
7 changes: 4 additions & 3 deletions src/clients.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ impl StateClient for StateStore {
rkyv::from_bytes(&data).map_err(|_| Error::Rkyv)?;
self.status("Stake received!");

let staking_address = pk.to_bytes().to_vec();
let staking_address = bs58::encode(staking_address).into_string();
println!("Staking address: {}", staking_address);

let stake = res.ok_or(Error::NotStaked).map(
|StakeData {
amount,
Expand All @@ -357,9 +361,6 @@ impl StateClient for StateStore {
counter,
},
)?;
let staking_address = pk.to_bytes().to_vec();
let staking_address = bs58::encode(staking_address).into_string();
println!("Staking address: {}", staking_address);

Ok(stake)
}
Expand Down

0 comments on commit 1fafb35

Please sign in to comment.