Skip to content

Commit 6d30028

Browse files
authored
fix: account parser in claim fee request (#876)
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
1 parent 516c5d1 commit 6d30028

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • clients/wallet_daemon_client/src

clients/wallet_daemon_client/src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ pub struct GetValidatorFeesResponse {
557557

558558
#[derive(Debug, Clone, Deserialize, Serialize)]
559559
pub struct ClaimValidatorFeesRequest {
560+
#[serde(default, deserialize_with = "opt_string_or_struct")]
560561
pub account: Option<ComponentAddressOrName>,
561562
pub max_fee: Option<Amount>,
562563
pub validator_public_key: PublicKey,

0 commit comments

Comments
 (0)