aboutsummaryrefslogtreecommitdiff
path: root/src/hdk.rs
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2021-03-18 08:42:35 +0100
committerNicholas Rodrigues Lordello <[email protected]>2021-03-18 08:42:35 +0100
commit1ce0c196c10dc92977114279180ea714056c587d (patch)
treeb726917e32f285bf4a63892cbd932e5b5dbb71f9 /src/hdk.rs
parent0bb365d3e0ec9663e8f011b31c3d4c52d168ab6f (diff)
add transaction tests and bump version
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();