From 5854a0d9f2718a968f37ca3f749e8ed25b73fde5 Mon Sep 17 00:00:00 2001 From: Sagar Rana Date: Sat, 18 Jul 2026 22:10:04 +0530 Subject: [PATCH] fix test --- lean_client/spec_test_fixtures/src/common.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lean_client/spec_test_fixtures/src/common.rs b/lean_client/spec_test_fixtures/src/common.rs index fa61a8f..bdde776 100644 --- a/lean_client/spec_test_fixtures/src/common.rs +++ b/lean_client/spec_test_fixtures/src/common.rs @@ -61,12 +61,12 @@ impl From for Checkpoint { #[serde(rename_all = "camelCase")] pub struct TestValidator { /// Legacy single-key fixtures emit `pubkey` instead of the camelCase - /// `attestationPubkey`; `rename_all` handles the camelCase, the explicit + /// `attestationPublicKey`; `rename_all` handles the camelCase, the explicit /// alias keeps the legacy form working. #[serde(alias = "pubkey")] - pub attestation_pubkey: String, + pub attestation_public_key: String, #[serde(default)] - pub proposal_pubkey: Option, + pub proposal_public_key: Option, #[serde(default)] pub index: u64, } @@ -219,11 +219,11 @@ impl From for State { let mut validators = Validators::default(); for test_validator in &value.validators.data { let attestation_pubkey: PublicKey = test_validator - .attestation_pubkey + .attestation_public_key .parse() .expect("Failed to parse validator attestation_pubkey"); let proposal_pubkey: PublicKey = test_validator - .proposal_pubkey + .proposal_public_key .as_deref() .map(|s| { s.parse()