Skip to content

fix: [FIND-115] createConfiguration Prematurely Finalizes In-Progress Batch Configuration#1183

Merged
jaime-iobermudez merged 2 commits into
developmentfrom
fix/find-115
May 25, 2026
Merged

fix: [FIND-115] createConfiguration Prematurely Finalizes In-Progress Batch Configuration#1183
jaime-iobermudez merged 2 commits into
developmentfrom
fix/find-115

Conversation

@jaime-iobermudez
Copy link
Copy Markdown
Contributor

This pull request introduces a stricter validation for configuration batch management in the DiamondCutManager, preventing accidental merging or finalization of incomplete batches. The key change is that calling createConfiguration on a configuration ID with an ongoing (incomplete) batch will now revert with a custom error, enforcing explicit batch management and avoiding silent merges.

Batch management and error handling improvements:

  • Added a new custom error OngoingBatchConfigurationNotPermitted to both IDiamondCutManager interface files, which is thrown when createConfiguration is called for a configuration ID that already has an in-progress batch. This prevents premature finalization and unintended facet absorption. [1] [2]
  • Updated the internal logic in DiamondCutManagerWrapper to revert with the new error if createConfiguration is called on an ongoing batch, instead of silently continuing or merging facets into the existing batch.

Test updates:

  • Modified the integration tests for DiamondCutManager to expect the new error when attempting to create a configuration on an ongoing batch, replacing previous tests that allowed silent merges. This ensures the new validation logic is enforced and tested. [1] [2]

Type of change

  • Bug fix 🐞
  • New feature ✨
  • Breaking change 💥
  • Documentation update 📖
  • Refactor 🔧

Testing

Node version:

  • 20
  • 22
  • 24

Checklist

  • Style Guidelines followed ✅
  • Documentation Updated 📚
  • Linters - No New Warnings ⚠️
  • Local Tests Pass ✅
  • Effective Tests Added ✔️
  • No reduction of Coverage

Signed-off-by: jaime-iobermudez <jaime.bermudez@io.builders>
Signed-off-by: jaime-iobermudez <jaime.bermudez@io.builders>
@jaime-iobermudez jaime-iobermudez self-assigned this May 22, 2026
@jaime-iobermudez jaime-iobermudez requested review from a team as code owners May 22, 2026 08:26
@github-actions github-actions Bot added the hash-change PR modifies @custom:hash annotations or codegen formula — review on-chain impact carefully label May 22, 2026
Copy link
Copy Markdown
Contributor

@themariofrancia themariofrancia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MiguelLZPF MiguelLZPF removed the hash-change PR modifies @custom:hash annotations or codegen formula — review on-chain impact carefully label May 25, 2026
@jaime-iobermudez jaime-iobermudez merged commit 9dde45b into development May 25, 2026
21 of 22 checks passed
@jaime-iobermudez jaime-iobermudez deleted the fix/find-115 branch May 25, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants