diff --git a/contracts/programs/ocr2/src/lib.rs b/contracts/programs/ocr2/src/lib.rs index e12e99588..935a71999 100644 --- a/contracts/programs/ocr2/src/lib.rs +++ b/contracts/programs/ocr2/src/lib.rs @@ -110,7 +110,7 @@ pub mod ocr2 { require!(proposal.state != Proposal::FINALIZED, InvalidInput); require!( - offchain_config.len() < proposal.offchain_config.remaining_capacity(), + offchain_config.len() <= proposal.offchain_config.remaining_capacity(), InvalidInput ); proposal.offchain_config.extend(&offchain_config);