From 6d30028d6e5041f05e0e67e9b944ed3016a64354 Mon Sep 17 00:00:00 2001 From: Martin Stefcek <35243812+Cifko@users.noreply.github.com> Date: Fri, 5 Jan 2024 08:47:35 +0100 Subject: [PATCH] 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 --- clients/wallet_daemon_client/src/types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/wallet_daemon_client/src/types.rs b/clients/wallet_daemon_client/src/types.rs index feda04d2d..2ac805186 100644 --- a/clients/wallet_daemon_client/src/types.rs +++ b/clients/wallet_daemon_client/src/types.rs @@ -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, pub max_fee: Option, pub validator_public_key: PublicKey,