aboutsummaryrefslogtreecommitdiff
path: root/src/hdk.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/hdk.rs')
-rw-r--r--src/hdk.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/hdk.rs b/src/hdk.rs
index ee1c942..864d7b8 100644
--- a/src/hdk.rs
+++ b/src/hdk.rs
@@ -70,14 +70,12 @@ where
#[cfg(test)]
mod tests {
use super::*;
- use crate::{account::Address, mnemonic::Mnemonic};
+ use crate::{account::Address, ganache::DETERMINISTIC_MNEMONIC, mnemonic::Mnemonic};
use hex_literal::hex;
#[test]
fn ganache_deterministic_mnemonic() {
- const GANACHE_DETERMINISTIC_MNEMONIC: &str = "myth like bonus scare over problem \
- client lizard pioneer submit female collect";
- let mnemonic = GANACHE_DETERMINISTIC_MNEMONIC.parse::<Mnemonic>().unwrap();
+ let mnemonic = DETERMINISTIC_MNEMONIC.parse::<Mnemonic>().unwrap();
let path = "m/44'/60'/0'/0/0".parse::<Path>().unwrap();
let account = derive(mnemonic.seed(""), &path).unwrap();