Skip to content

Commit

Permalink
addressed clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
miloszm committed Jan 18, 2024
1 parent a6c8c3e commit a6fa9dd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions contracts/transfer/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ impl TransferOps {
let transfer_owner =
rusk_abi::owner::<{ PublicKey::SIZE }>(TRANSFER_CONTRACT).unwrap();
let caller_id = rusk_abi::caller();
match rusk_abi::owner::<{ PublicKey::SIZE }>(caller_id) {
Some(caller_owner) if caller_owner.eq(&transfer_owner) => true,
_ => false,
}
matches!(rusk_abi::owner::<{ PublicKey::SIZE }>(caller_id), Some(caller_owner) if caller_owner.eq(&transfer_owner))
}

pub fn mint(&mut self, mint: Mint) -> bool {
Expand Down

0 comments on commit a6fa9dd

Please sign in to comment.