Просмотр исходного кода

fix typo in walletdb destroy function

ghassmo 4 лет назад
Родитель
Сommit
8463e9c3a7
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/wallet/walletdb.rs

+ 4 - 4
src/wallet/walletdb.rs

@@ -287,7 +287,7 @@ impl WalletDb {
         Ok(tables)
         Ok(tables)
     }
     }
 
 
-    pub fn destory(&self) -> Result<()> {
+    pub fn destroy(&self) -> Result<()> {
         let conn = Connection::open(&self.path)?;
         let conn = Connection::open(&self.path)?;
         conn.pragma_update(None, "key", &self.password)?;
         conn.pragma_update(None, "key", &self.password)?;
 
 
@@ -336,7 +336,7 @@ mod tests {
         assert_eq!(public, public2);
         assert_eq!(public, public2);
         assert_eq!(secret, secret2);
         assert_eq!(secret, secret2);
 
 
-        wallet.destory()?;
+        wallet.destroy()?;
 
 
         Ok(())
         Ok(())
     }
     }
@@ -379,7 +379,7 @@ mod tests {
         assert_eq!(own_coin.3.root(), witness.root());
         assert_eq!(own_coin.3.root(), witness.root());
         assert_eq!(own_coin.3.path(), witness.path());
         assert_eq!(own_coin.3.path(), witness.path());
 
 
-        wallet.destory()?;
+        wallet.destroy()?;
 
 
         Ok(())
         Ok(())
     }
     }
@@ -436,7 +436,7 @@ mod tests {
             assert_eq!(tree.root(), witness.root());
             assert_eq!(tree.root(), witness.root());
         }
         }
 
 
-        wallet.destory()?;
+        wallet.destroy()?;
 
 
         Ok(())
         Ok(())
     }
     }