Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Mar 24, 2023
1 parent ffe96d5 commit d72ddb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion client/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ pub mod frontier_backend_client {
let mut key = [twox_128(b"System"), twox_128(b"Account")]
.concat()
.to_vec();
let system_account = key.clone();
let account_id = Self::AddressMapping::into_account_id_bytes(address);
key.extend(blake2_128(&account_id));
key.extend(&account_id);
Expand Down
7 changes: 4 additions & 3 deletions template/node/src/rpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ use sc_service::TransactionPool;
use sc_transaction_pool::ChainApi;
use sp_api::{CallApiAt, ProvideRuntimeApi};
use sp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
use sp_core::ByteArray;
use sp_runtime::traits::{BlakeTwo256, Block as BlockT};
use sp_runtime::traits::Block as BlockT;
// Runtime
use frontier_template_runtime::{opaque::Block, AccountId, Balance, Hash, Index};

Expand All @@ -28,7 +27,9 @@ pub use self::eth::{create_eth, overrides_handle, EthDeps};
pub struct AccountId32AddressMapping;
impl fp_rpc::EthereumRuntimeAddressMapping for AccountId32AddressMapping {
fn into_account_id_bytes(address: sp_core::H160) -> Vec<u8> {
pallet_evm::IdentityAddressMapping::<BlakeTwo256>::into_account_id(address).to_raw_vec()
pallet_evm::IdentityAddressMapping::into_account_id(address)
.as_bytes()
.to_owned()
}
}

Expand Down

0 comments on commit d72ddb9

Please sign in to comment.