소스 검색

fix typo in walletdb destroy function

ghassmo 4 년 전
부모
커밋
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)
     }
 
-    pub fn destory(&self) -> Result<()> {
+    pub fn destroy(&self) -> Result<()> {
         let conn = Connection::open(&self.path)?;
         conn.pragma_update(None, "key", &self.password)?;
 
@@ -336,7 +336,7 @@ mod tests {
         assert_eq!(public, public2);
         assert_eq!(secret, secret2);
 
-        wallet.destory()?;
+        wallet.destroy()?;
 
         Ok(())
     }
@@ -379,7 +379,7 @@ mod tests {
         assert_eq!(own_coin.3.root(), witness.root());
         assert_eq!(own_coin.3.path(), witness.path());
 
-        wallet.destory()?;
+        wallet.destroy()?;
 
         Ok(())
     }
@@ -436,7 +436,7 @@ mod tests {
             assert_eq!(tree.root(), witness.root());
         }
 
-        wallet.destory()?;
+        wallet.destroy()?;
 
         Ok(())
     }