Clean up is_mine method body

This commit is contained in:
thunderbiscuit 2023-05-15 09:01:39 -04:00
parent 2c4c64515f
commit 3be2c0495f
No known key found for this signature in database
GPG Key ID: 88253696EB836462

View File

@ -67,7 +67,7 @@ impl Wallet {
/// Return whether or not a script is part of this wallet (either internal or external).
pub(crate) fn is_mine(&self, script: Arc<Script>) -> Result<bool, BdkError> {
Ok(self.get_wallet().is_mine(&script.script).unwrap())
self.get_wallet().is_mine(&script.script)
}
/// Sync the internal database with the blockchain.