diff --git a/crates/chainio/clients/elcontracts/src/reader.rs b/crates/chainio/clients/elcontracts/src/reader.rs index 459c1eac..a1987105 100644 --- a/crates/chainio/clients/elcontracts/src/reader.rs +++ b/crates/chainio/clients/elcontracts/src/reader.rs @@ -1650,7 +1650,7 @@ mod tests { .await .unwrap(); - assert_eq!(is_pending_admin, false); + assert!(!is_pending_admin); } #[tokio::test] @@ -1663,6 +1663,6 @@ mod tests { .await .unwrap(); - assert_eq!(is_admin, true); + assert!(is_admin); } } diff --git a/crates/chainio/clients/elcontracts/src/writer.rs b/crates/chainio/clients/elcontracts/src/writer.rs index 2e057a2e..668361ea 100644 --- a/crates/chainio/clients/elcontracts/src/writer.rs +++ b/crates/chainio/clients/elcontracts/src/writer.rs @@ -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) @@ -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] @@ -1152,7 +1152,7 @@ mod tests { .is_admin(OPERATOR_ADDRESS, pending_admin) .await .unwrap(); - assert_eq!(is_admin, true); + assert!(is_admin); } #[tokio::test] @@ -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] diff --git a/examples/avsregistry-write/examples/register_operator_in_quorum_with_avs_registry_coordinator.rs b/examples/avsregistry-write/examples/register_operator_in_quorum_with_avs_registry_coordinator.rs index 9ac5b7a9..c219c3b3 100644 --- a/examples/avsregistry-write/examples/register_operator_in_quorum_with_avs_registry_coordinator.rs +++ b/examples/avsregistry-write/examples/register_operator_in_quorum_with_avs_registry_coordinator.rs @@ -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