diff --git a/deployment/ccip/shared/deployergroup/deployer_group.go b/deployment/ccip/shared/deployergroup/deployer_group.go index bce0dc3ef82..83e5bad1458 100644 --- a/deployment/ccip/shared/deployergroup/deployer_group.go +++ b/deployment/ccip/shared/deployergroup/deployer_group.go @@ -450,14 +450,13 @@ func (d *DeployerGroup) enactMcms() (cldf.ChangesetOutput, error) { } func getBatchCountForChain(chain mcmstypes.ChainSelector, timelockProposal *mcmslib.TimelockProposal) uint64 { - batches := make([]mcmstypes.BatchOperation, 0) + var count uint64 for _, batchOperation := range timelockProposal.Operations { if batchOperation.ChainSelector == chain { - batches = append(batches, batchOperation) + count++ } } - - return uint64(len(batches)) + return count } func (d *DeployerGroup) enactDeployer() (cldf.ChangesetOutput, error) {