From dbe2fa4c1ba4a301be0b2bf6525a1565bd30ae3b Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Mon, 5 Sep 2022 16:49:52 +1000 Subject: [PATCH] Add comment about `amount` field --- validator_manager/src/validators/common.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/validator_manager/src/validators/common.rs b/validator_manager/src/validators/common.rs index 9d587899fe..3f375a10f1 100644 --- a/validator_manager/src/validators/common.rs +++ b/validator_manager/src/validators/common.rs @@ -165,6 +165,8 @@ pub struct StandardDepositDataJson { pub pubkey: PublicKeyBytes, #[serde(with = "hash256_without_0x_prefix")] pub withdrawal_credentials: Hash256, + /// The `amount` field is *not* quoted (i.e., a string) like most other `u64` fields in the + /// consensus specs, it's a simple integer. pub amount: u64, #[serde(with = "signature_bytes_without_0x_prefix")] pub signature: SignatureBytes,