Skip to content

Commit

Permalink
chore: add new fn to eip1186
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Nov 26, 2024
1 parent fda0bdf commit f71bc0a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/rpc-types-eth/src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ pub struct EIP1186StorageProof {
pub proof: Vec<Bytes>,
}

impl EIP1186StorageProof {
/// Create a new `EIP1186StorageProof` instance.
pub const fn new(key: alloy_serde::storage::JsonStorageKey, value: U256, proof: Vec<Bytes>) -> Self {
Self { key, value, proof }
}
}

/// Response for EIP-1186 account proof `eth_getProof`
#[derive(Clone, Debug, Default, PartialEq, Eq)]
#[cfg(feature = "serde")]
Expand Down

0 comments on commit f71bc0a

Please sign in to comment.