From 946886833d5827956aca83099537a1b4090c8c32 Mon Sep 17 00:00:00 2001 From: Ryan Hall Date: Thu, 10 Oct 2024 09:03:09 -0400 Subject: [PATCH] change && to nested if --- contracts/src/v0.8/ccip/rmn/RMNRemote.sol | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contracts/src/v0.8/ccip/rmn/RMNRemote.sol b/contracts/src/v0.8/ccip/rmn/RMNRemote.sol index c549fe1290..03b622c5f3 100644 --- a/contracts/src/v0.8/ccip/rmn/RMNRemote.sol +++ b/contracts/src/v0.8/ccip/rmn/RMNRemote.sol @@ -142,8 +142,10 @@ contract RMNRemote is OwnerIsCreator, ITypeAndVersion, IRMNRemote { } // min signers requirement is tenable - if (newConfig.enabled && newConfig.signers.length < 2 * newConfig.f + 1) { - revert NotEnoughSigners(); + if (newConfig.enabled) { + if (newConfig.signers.length < 2 * newConfig.f + 1) { + revert NotEnoughSigners(); + } } // clear the old signers