chore: fmt

This commit is contained in:
Georgios Konstantopoulos 2020-05-28 09:39:38 +03:00
parent 7c465c2027
commit a78979a3ac
No known key found for this signature in database
GPG Key ID: FA607837CD26EDBC
2 changed files with 3 additions and 3 deletions

View File

@ -3,8 +3,8 @@ use ethers_utils::{hash_message, keccak256};
use rand::Rng;
use secp256k1::{
key::ONE_KEY, Error as SecpError, Message, PublicKey as PubKey, recovery::RecoveryId, Secp256k1,
SecretKey,
key::ONE_KEY, recovery::RecoveryId, Error as SecpError, Message, PublicKey as PubKey,
Secp256k1, SecretKey,
};
use std::ops::Deref;
use std::str::FromStr;

View File

@ -58,7 +58,7 @@ mod tests {
// from https://emn178.github.io/online-tools/keccak_256.html
fn test_keccak256() {
assert_eq!(
keccak256("hello".as_bytes()).to_hex::<String>(),
keccak256(b"hello").to_hex::<String>(),
"1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"
);
}