Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rot13maxi committed Feb 15, 2024
1 parent dd2da35 commit fb8fe8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vault/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl VaultCovenant {
}

pub(crate) fn get_current_outpoint(&self) -> Result<OutPoint> {
Ok(self.current_outpoint.ok_or(anyhow!("no current outpoint"))?)
self.current_outpoint.ok_or(anyhow!("no current outpoint"))
}
pub(crate) fn set_amount(&mut self, amount: Amount) {
self.amount = amount;
Expand All @@ -110,7 +110,7 @@ impl VaultCovenant {

pub(crate) fn get_withdrawal_address(&self) -> Result<Address> {
Ok(
Address::from_str(&self.withdrawal_address.as_ref().ok_or(anyhow!("no withdrawal address"))?)?.require_network(self.network)?
Address::from_str(self.withdrawal_address.as_ref().ok_or(anyhow!("no withdrawal address"))?)?.require_network(self.network)?
)
}

Expand All @@ -119,7 +119,7 @@ impl VaultCovenant {
}

pub(crate) fn get_trigger_transaction(&self) -> Result<Transaction> {
Ok(self.trigger_transaction.clone().ok_or(anyhow!("no trigger transaction"))?)
self.trigger_transaction.clone().ok_or(anyhow!("no trigger transaction"))
}

pub(crate) fn set_state(&mut self, state: VaultState) {
Expand Down

0 comments on commit fb8fe8a

Please sign in to comment.