chore: make proof response fields pub (#1612)

This commit is contained in:
Matthias Seitz 2022-08-19 17:18:48 +02:00 committed by GitHub
parent afb6808ddb
commit 2083841200
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
use crate::types::{Address, Bytes, H256, U256}; use crate::types::{Address, Bytes, H256, U256, U64};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[derive(Debug, Default, Clone, PartialEq, Eq, Deserialize, Serialize)] #[derive(Debug, Default, Clone, PartialEq, Eq, Deserialize, Serialize)]
@ -11,13 +11,13 @@ pub struct StorageProof {
#[derive(Debug, Default, Clone, PartialEq, Eq, Deserialize, Serialize)] #[derive(Debug, Default, Clone, PartialEq, Eq, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct EIP1186ProofResponse { pub struct EIP1186ProofResponse {
address: Address, pub address: Address,
balance: U256, pub balance: U256,
code_hash: H256, pub code_hash: H256,
nonce: U256, pub nonce: U64,
storage_hash: H256, pub storage_hash: H256,
account_proof: Vec<Bytes>, pub account_proof: Vec<Bytes>,
storage_proof: Vec<StorageProof>, pub storage_proof: Vec<StorageProof>,
} }
#[cfg(test)] #[cfg(test)]