Browse Source

fix a bug in cashierdb test

ghassmo 4 years ago
parent
commit
98042a3e90
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/wallet/cashierdb.rs

+ 1 - 1
src/wallet/cashierdb.rs

@@ -285,7 +285,7 @@ mod tests {
         let wallet = CashierDb::new(&walletdb_path, "darkfi".into())?;
         let wallet = CashierDb::new(&walletdb_path, "darkfi".into())?;
         wallet.init_db()?;
         wallet.init_db()?;
 
 
-        let (public, secret) = wallet.key_gen();
+        let (public, secret) = wallet.key_gen()?;
         wallet.put_keypair(public, secret)?;
         wallet.put_keypair(public, secret)?;
 
 
         let secret2: jubjub::Fr = jubjub::Fr::random(&mut OsRng);
         let secret2: jubjub::Fr = jubjub::Fr::random(&mut OsRng);