Skip to content

Commit

Permalink
fix removed sha3
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderian committed Sep 25, 2024
1 parent 6cf0079 commit 563ff70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/rolldown/src/messages/eth_abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ mod test {
use alloy_sol_types::SolValue;
use hex_literal::hex;
use serial_test::serial;
use sha3::{Digest, Keccak256};
use sp_crypto_hashing::keccak_256;

pub trait Keccak256Hash {
fn keccak256_hash(&self) -> [u8; 32];
Expand All @@ -207,7 +207,7 @@ mod test {
T: SolValue,
{
fn keccak256_hash(&self) -> [u8; 32] {
Into::<[u8; 32]>::into(Keccak256::digest(&self.abi_encode()[..]))
Into::<[u8; 32]>::into(keccak_256(&self.abi_encode()[..]))
}
}

Expand Down

0 comments on commit 563ff70

Please sign in to comment.