Skip to content

Commit

Permalink
chain-state: derive Default for ExecutedBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Aug 17, 2024
1 parent fac41d3 commit 077280e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/chain-state/src/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ impl BlockState {
}

/// Represents an executed block stored in-memory.
#[derive(Clone, Debug, PartialEq, Eq)]
#[derive(Clone, Debug, PartialEq, Eq, Default)]
pub struct ExecutedBlock {
/// Sealed block the rest of fields refer to.
pub block: Arc<SealedBlock>,
Expand All @@ -671,7 +671,7 @@ pub struct ExecutedBlock {
}

impl ExecutedBlock {
/// `ExecutedBlock` constructor.
/// [`ExecutedBlock`] constructor.
pub const fn new(
block: Arc<SealedBlock>,
senders: Arc<Vec<Address>>,
Expand Down

0 comments on commit 077280e

Please sign in to comment.