aboutsummaryrefslogtreecommitdiff
path: root/src/hdk.rs
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2022-05-31 21:18:36 +0200
committerNicholas Rodrigues Lordello <[email protected]>2022-05-31 21:18:36 +0200
commit7517ff3454a1d3c8811d1eb8d8be8cef23aba001 (patch)
treece673b61a89c06a5c26a0b980e27c3e53d3ce8aa /src/hdk.rs
parentc5d2ec6c93a40af460e35d9171dd7966e97a0c75 (diff)
Hash more types
Diffstat (limited to 'src/hdk.rs')
-rw-r--r--src/hdk.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hdk.rs b/src/hdk.rs
index daf4a9d..2be1e44 100644
--- a/src/hdk.rs
+++ b/src/hdk.rs
@@ -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"),
);
}
}