Skip to content

Commit

Permalink
refactor: refactor visibility to move
Browse files Browse the repository at this point in the history
  • Loading branch information
tchataigner committed Jul 29, 2024
1 parent e414e48 commit 88bffe1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ethereum/core/src/types/block/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub const LIGHT_CLIENT_HEADER_BASE_BYTES_LEN: usize = BEACON_BLOCK_HEADER_BYTES_
#[derive(Debug, Clone, Eq, PartialEq, Getters)]
#[getset(get = "pub")]
pub struct LightClientHeader {
beacon: BeaconBlockHeader,
pub(crate) beacon: BeaconBlockHeader,
execution: ExecutionBlockHeader,
execution_branch: ExecutionBranch,
}
Expand Down
8 changes: 4 additions & 4 deletions ethereum/core/src/types/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ pub const UPDATE_BASE_BYTES_LEN: usize = LIGHT_CLIENT_HEADER_BASE_BYTES_LEN * 2
#[derive(Debug, Clone, Eq, PartialEq, Getters)]
#[getset(get = "pub")]
pub struct Update {
attested_header: LightClientHeader,
pub(crate) attested_header: LightClientHeader,
next_sync_committee: SyncCommittee,
next_sync_committee_branch: SyncCommitteeBranch,
finalized_header: LightClientHeader,
pub(crate) finalized_header: LightClientHeader,
finality_branch: FinalizedRootBranch,
sync_aggregate: SyncAggregate,
signature_slot: u64,
Expand Down Expand Up @@ -409,9 +409,9 @@ impl From<FinalityUpdate> for CompactUpdate {
impl From<Update> for CompactUpdate {
fn from(update: Update) -> Self {
Self {
attested_beacon_header: update.attested_header.beacon().clone(),
finalized_beacon_header: update.finalized_header.beacon().clone(),
finalized_execution_state_root: *update.finalized_header.execution().state_root(),
attested_beacon_header: update.attested_header.beacon,
finalized_beacon_header: update.finalized_header.beacon,
finality_branch: update.finality_branch,
sync_aggregate: update.sync_aggregate,
signature_slot: update.signature_slot,
Expand Down

0 comments on commit 88bffe1

Please sign in to comment.