From 43053794b0b72bb08d17f4bf47ceabe62aca984b Mon Sep 17 00:00:00 2001 From: driftluo Date: Thu, 16 Nov 2023 14:45:17 +0800 Subject: [PATCH] chore: remove extra hash --- core/api/src/adapter.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/api/src/adapter.rs b/core/api/src/adapter.rs index 16f1f0797..3dcfd167a 100644 --- a/core/api/src/adapter.rs +++ b/core/api/src/adapter.rs @@ -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}; @@ -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, })