We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d1b6ba commit 3443701Copy full SHA for 3443701
2 files changed
src/transaction/eip7702.rs
@@ -342,7 +342,7 @@ mod tests {
342
rlp_stream.append(&address);
343
rlp_stream.append(&nonce);
344
message.extend_from_slice(&rlp_stream.out());
345
- let message_hash = H256::from_slice(Keccak256::digest(&message).as_slice());
+ let message_hash = H256::from_slice(Keccak256::digest(&message).as_ref());
346
347
// Sign the message hash
348
let (signature, recovery_id) = signing_key
src/util.rs
@@ -178,7 +178,7 @@ mod tests {
178
const LENGTH: usize = 32;
179
180
fn hash(x: &[u8]) -> Self::Out {
181
- H256::from_slice(Keccak256::digest(x).as_slice())
+ H256::from_slice(Keccak256::digest(x).as_ref())
182
}
183
184
0 commit comments