Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lean_client/spec_test_fixtures/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ impl From<TestCheckpoint> 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<String>,
pub proposal_public_key: Option<String>,
#[serde(default)]
pub index: u64,
}
Expand Down Expand Up @@ -219,11 +219,11 @@ impl From<TestAnchorState> 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()
Expand Down
Loading