diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2022-05-31 21:18:36 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2022-05-31 21:18:36 +0200 |
| commit | 7517ff3454a1d3c8811d1eb8d8be8cef23aba001 (patch) | |
| tree | ce673b61a89c06a5c26a0b980e27c3e53d3ce8aa /src/hdk.rs | |
| parent | c5d2ec6c93a40af460e35d9171dd7966e97a0c75 (diff) | |
Hash more types
Diffstat (limited to 'src/hdk.rs')
| -rw-r--r-- | src/hdk.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -65,8 +65,8 @@ fn derive_slice(seed: &[u8], path: &Path) -> Result<PrivateKey> { #[cfg(test)] mod tests { use super::*; - use crate::{account::Address, ganache::DETERMINISTIC_MNEMONIC, mnemonic::Mnemonic}; - use hex_literal::hex; + use crate::{ganache::DETERMINISTIC_MNEMONIC, mnemonic::Mnemonic}; + use ethaddr::address; #[test] fn ganache_deterministic_mnemonic() { @@ -76,7 +76,7 @@ mod tests { let account = derive(mnemonic.seed(""), &path).unwrap(); assert_eq!( account.address(), - Address(hex!("90F8bf6A479f320ead074411a4B0e7944Ea8c9C1")), + address!("0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1"), ); } } |
