From b5d8fa4a865e7189000d3f2cadc604edbe5ba1a8 Mon Sep 17 00:00:00 2001 From: Wolfgang Welz Date: Mon, 28 Aug 2023 10:39:55 -0400 Subject: [PATCH] use into_array() --- primitives/src/revm.rs | 2 +- testing/ef-tests/src/ethers.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/primitives/src/revm.rs b/primitives/src/revm.rs index f6b7b3ff..87439549 100644 --- a/primitives/src/revm.rs +++ b/primitives/src/revm.rs @@ -25,7 +25,7 @@ use crate::{ /// Converts a `Address` type to its corresponding `RevmB160` representation. #[inline] pub fn to_revm_b160(v: Address) -> RevmB160 { - v.0 .0.into() + v.into_array().into() } /// Converts a `B256` type to its corresponding `RevmB256` representation. diff --git a/testing/ef-tests/src/ethers.rs b/testing/ef-tests/src/ethers.rs index d138a7d3..66813c9a 100644 --- a/testing/ef-tests/src/ethers.rs +++ b/testing/ef-tests/src/ethers.rs @@ -43,7 +43,7 @@ impl Provider for TestProvider { Ok(Block:: { parent_hash: self.header.parent_hash.0.into(), uncles_hash: self.header.ommers_hash.0.into(), - author: Some(self.header.beneficiary.0 .0.into()), + author: Some(self.header.beneficiary.into_array().into()), state_root: self.header.state_root.0.into(), transactions_root: self.header.transactions_root.0.into(), receipts_root: self.header.receipts_root.0.into(), @@ -189,7 +189,7 @@ fn get_proof( } Ok(EIP1186ProofResponse { - address: address.0 .0.into(), + address: address.into_array().into(), balance: account.balance.to_be_bytes().into(), code_hash: keccak(account.code).into(), nonce: account.nonce.to_be_bytes().into(),