Skip to content

Commit

Permalink
fix: account parser in claim fee request (#876)
Browse files Browse the repository at this point in the history
Description
---
Allow the account to be parsed from string

Motivation and Context
---
Upon some testing I came to this issue.

How Has This Been Tested?
---
In my testing environment I'm doing claiming fees, and I was able to
claim them successfuly.

What process can a PR reviewer use to test or verify this change?
---
You can try to call the jrpc with string and you will see an error
without this change.


Breaking Changes
---

- [x] None
- [ ] Requires data directory to be deleted
- [ ] Other - Please specify
  • Loading branch information
Cifko authored Jan 5, 2024
1 parent 516c5d1 commit 6d30028
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clients/wallet_daemon_client/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ pub struct GetValidatorFeesResponse {

#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct ClaimValidatorFeesRequest {
#[serde(default, deserialize_with = "opt_string_or_struct")]
pub account: Option<ComponentAddressOrName>,
pub max_fee: Option<Amount>,
pub validator_public_key: PublicKey,
Expand Down

0 comments on commit 6d30028

Please sign in to comment.