Skip to content

Commit

Permalink
trie: add Default impl for AccountProof (#10132)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger authored Aug 6, 2024
1 parent bdb8b9f commit 58a5d26
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/trie/common/src/proofs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ pub struct AccountProof {
pub storage_proofs: Vec<StorageProof>,
}

impl Default for AccountProof {
fn default() -> Self {
Self::new(Address::default())
}
}

impl AccountProof {
/// Create new account proof entity.
pub const fn new(address: Address) -> Self {
Expand Down

0 comments on commit 58a5d26

Please sign in to comment.