Skip to content

Commit ee0a8a9

Browse files
committed
All ssz_static tests passing except DataColumnSidecar
1 parent 7bf98d4 commit ee0a8a9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

consensus/types/src/attestation/payload_attestation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use bls::AggregateSignature;
55
use context_deserialize::context_deserialize;
66
use educe::Educe;
77
use serde::{Deserialize, Serialize};
8-
use ssz::BitList;
8+
use ssz::BitVector;
99
use ssz_derive::{Decode, Encode};
1010
use test_random_derive::TestRandom;
1111
use tree_hash_derive::TreeHash;
@@ -17,7 +17,7 @@ use tree_hash_derive::TreeHash;
1717
#[educe(PartialEq, Hash)]
1818
#[context_deserialize(ForkName)]
1919
pub struct PayloadAttestation<E: EthSpec> {
20-
pub aggregation_bits: BitList<E::PTCSize>,
20+
pub aggregation_bits: BitVector<E::PTCSize>,
2121
pub data: PayloadAttestationData,
2222
pub signature: AggregateSignature,
2323
}

consensus/types/src/builder/builder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ pub type BuilderIndex = u64;
1414
)]
1515
pub struct Builder {
1616
pub pubkey: PublicKeyBytes,
17+
#[serde(with = "serde_utils::quoted_u8")]
1718
pub version: u8,
1819
pub execution_address: Address,
20+
#[serde(with = "serde_utils::quoted_u64")]
1921
pub balance: u64,
2022
pub deposit_epoch: Epoch,
2123
pub withdrawable_epoch: Epoch,

consensus/types/src/core/eth_spec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ impl EthSpec for MinimalEthSpec {
548548
type NumberOfColumns = U128;
549549
type ProposerLookaheadSlots = U16; // Derived from (MIN_SEED_LOOKAHEAD + 1) * SLOTS_PER_EPOCH
550550
type BuilderPendingPaymentsLimit = U16; // 2 * SLOTS_PER_EPOCH = 2 * 8 = 16
551+
type PTCSize = U2;
551552

552553
params_from_eth_spec!(MainnetEthSpec {
553554
JustificationBitsLength,
@@ -578,7 +579,6 @@ impl EthSpec for MinimalEthSpec {
578579
MaxAttestationsElectra,
579580
MaxDepositRequestsPerPayload,
580581
MaxWithdrawalRequestsPerPayload,
581-
PTCSize,
582582
MaxPayloadAttestations,
583583
BuilderRegistryLimit
584584
});

0 commit comments

Comments
 (0)