Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasArrachea committed Dec 26, 2024
1 parent 8e776e2 commit 5882608
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions crates/chainio/clients/elcontracts/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ mod tests {
.await
.unwrap();

assert_eq!(is_pending_admin, false);
assert!(!is_pending_admin);
}

#[tokio::test]
Expand All @@ -1663,6 +1663,6 @@ mod tests {
.await
.unwrap();

assert_eq!(is_admin, true);
assert!(is_admin);
}
}
8 changes: 4 additions & 4 deletions crates/chainio/clients/elcontracts/src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ mod tests {
.is_pending_admin(OPERATOR_ADDRESS, pending_admin)
.await
.unwrap();
assert_eq!(is_pending_admin, true);
assert!(is_pending_admin);

let tx_hash = el_chain_writer
.remove_pending_admin(OPERATOR_ADDRESS, pending_admin)
Expand All @@ -1124,7 +1124,7 @@ mod tests {
.is_pending_admin(OPERATOR_ADDRESS, pending_admin)
.await
.unwrap();
assert_eq!(is_admin, false);
assert!(!is_admin);
}

#[tokio::test]
Expand Down Expand Up @@ -1152,7 +1152,7 @@ mod tests {
.is_admin(OPERATOR_ADDRESS, pending_admin)
.await
.unwrap();
assert_eq!(is_admin, true);
assert!(is_admin);
}

#[tokio::test]
Expand Down Expand Up @@ -1196,7 +1196,7 @@ mod tests {
.is_admin(OPERATOR_ADDRESS, pending_admin_2)
.await
.unwrap();
assert_eq!(is_admin, false);
assert!(!is_admin);
}

#[tokio::test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ async fn main() -> Result<()> {
let quorum_nums = Bytes::from([0x01]);

let delegation_manager_contract =
DelegationManager::new(DELEGATION_MANAGER_ADDRESS, get_provider(&holesky_provider));
DelegationManager::new(DELEGATION_MANAGER_ADDRESS, get_provider(holesky_provider));
let permission_controller = delegation_manager_contract
.permissionController()
.call()
.await
.unwrap()
.expect("DelegationManager contract failed when accessing PermissionController")
._0;

// A new ElChainReader instance
Expand Down

0 comments on commit 5882608

Please sign in to comment.