Skip to content

Commit

Permalink
second round of review
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio committed Nov 15, 2021
1 parent 98abade commit e8f3547
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ use ethereum_types::{H256, U256, U64};
use serde::{Deserialize, Serialize};
use crate::types::Bytes;

///Proof struct returned by eth_getProof method
///
/// https://eips.ethereum.org/EIPS/eip-1186
#[derive(Debug, Default, Clone, PartialEq, Deserialize, Serialize)]
///Proof struct returned by eth_getProof method
pub struct Proof {
/// the balance of the account. See eth_getBalance
pub balance: U64,
Expand All @@ -24,6 +25,7 @@ pub struct Proof {
pub storage_proof: Vec<StorageProof>,
}

/// A key-value pair and it's state proof.
#[derive(Debug, Default, Clone, PartialEq, Deserialize, Serialize)]
pub struct StorageProof {
/// the requested storage key
Expand Down

0 comments on commit e8f3547

Please sign in to comment.