Skip to content

Commit

Permalink
fix: remove extra hash account.storage_root in fn get_proof (#1564)
Browse files Browse the repository at this point in the history
chore: remove extra hash
  • Loading branch information
driftluo authored and KaoImin committed Nov 17, 2023
1 parent 6f0f483 commit fcc81b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/api/src/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ use protocol::traits::{
use protocol::trie::Trie as _;
use protocol::types::{
Account, BigEndianHash, Block, BlockNumber, Bytes, CkbRelatedInfo, EthAccountProof,
EthStorageProof, ExecutorContext, HardforkInfo, HardforkInfoInner, Hash, Hasher, Header, Hex,
Metadata, Proposal, Receipt, SignedTransaction, TxResp, H160, H256, MAX_BLOCK_GAS_LIMIT,
NIL_DATA, RLP_NULL, U256,
EthStorageProof, ExecutorContext, HardforkInfo, HardforkInfoInner, Hash, Header, Hex, Metadata,
Proposal, Receipt, SignedTransaction, TxResp, H160, H256, MAX_BLOCK_GAS_LIMIT, NIL_DATA,
RLP_NULL, U256,
};
use protocol::{async_trait, codec::ProtocolCodec, trie, ProtocolError, ProtocolResult};

Expand Down Expand Up @@ -294,7 +294,7 @@ where
balance: account.balance,
code_hash: account.code_hash,
nonce: account.nonce,
storage_hash: Hasher::digest(account.storage_root),
storage_hash: account.storage_root,
account_proof,
storage_proof: storage_proofs,
})
Expand Down

0 comments on commit fcc81b1

Please sign in to comment.