Parcourir la source

fix a bug in cashierdb test

ghassmo il y a 4 ans
Parent
commit
98042a3e90
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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())?;
         wallet.init_db()?;
 
-        let (public, secret) = wallet.key_gen();
+        let (public, secret) = wallet.key_gen()?;
         wallet.put_keypair(public, secret)?;
 
         let secret2: jubjub::Fr = jubjub::Fr::random(&mut OsRng);