Skip to content

Commit

Permalink
use into_array()
Browse files Browse the repository at this point in the history
  • Loading branch information
Wollac committed Aug 28, 2023
1 parent 8e6235d commit b5d8fa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion primitives/src/revm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions testing/ef-tests/src/ethers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl Provider for TestProvider {
Ok(Block::<H256> {
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(),
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit b5d8fa4

Please sign in to comment.