Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,23 @@
})
.transpose();
match contract {
Ok(contract) => Ok((root_hash, contract)),
Ok(contract) => match contract {
None => {
if contract_known_keeps_history.unwrap_or_default() != true {

Check failure on line 132 in packages/rs-drive/src/verify/contract/verify_contract/v0/mod.rs

View workflow job for this annotation

GitHub Actions / Rust packages (drive) / Linting

inequality checks against true can be replaced by a negation

error: inequality checks against true can be replaced by a negation --> packages/rs-drive/src/verify/contract/verify_contract/v0/mod.rs:132:28 | 132 | if contract_known_keeps_history.unwrap_or_default() != true { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!contract_known_keeps_history.unwrap_or_default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison = note: `-D clippy::bool-comparison` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::bool_comparison)]`
Self::verify_contract(
proof,
Some(true),
is_proof_subset,
in_multiple_contract_proof_form,
contract_id,
platform_version,
)
} else{
Ok((root_hash, contract))
}
}
Some(_) => Ok((root_hash, contract))
},
Err(e) => {
if contract_known_keeps_history.is_some() {
// just return error
Expand Down
Loading