Skip to content

Commit

Permalink
chore: replace keccak256
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-aranha-cw committed Feb 4, 2025
1 parent 63af6f6 commit 98bf817
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/eth/primitives/slot_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::io::Read;

use display_json::DebugAsJson;
use ethereum_types::U256;
use ethers_core::utils::keccak256;
use alloy_primitives::keccak256;
use fake::Dummy;
use fake::Faker;

Expand Down Expand Up @@ -33,7 +33,7 @@ impl SlotIndex {
mapping_index_bytes[32..64].copy_from_slice(&slot_index_bytes);

let hashed_bytes = keccak256(mapping_index_bytes);
Self::from(hashed_bytes)
Self::from(hashed_bytes.0)
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/eth/primitives/transaction_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ impl TransactionStage {
}
TransactionStage::Executed(TransactionExecution::External(tx)) => {
// remove block information because we don't know to which local block the transaction will be added to.
let mut ethers_tx = tx.tx.0;
ethers_tx.block_number = None;
ethers_tx.block_hash = None;
to_json_value(ethers_tx)
let mut alloy_tx = tx.tx.0;
alloy_tx.block_number = None;
alloy_tx.block_hash = None;
to_json_value(alloy_tx)
}
TransactionStage::Mined(tx) => {
let json_rpc_payload: AlloyTransaction = tx.into();
Expand Down

0 comments on commit 98bf817

Please sign in to comment.