Skip to content

Fix: Relax duplicate mutable constraint (#3946)#4202

Merged
jamie-osec merged 11 commits into
otter-sec:masterfrom
swaroop-osec:fix/3946-relax-duplicate-mutable-constraint
Feb 12, 2026
Merged

Fix: Relax duplicate mutable constraint (#3946)#4202
jamie-osec merged 11 commits into
otter-sec:masterfrom
swaroop-osec:fix/3946-relax-duplicate-mutable-constraint

Conversation

@swaroop-osec

@swaroop-osec swaroop-osec commented Jan 28, 2026

Copy link
Copy Markdown
Collaborator
  • Relax duplicate mutable account constraint to only check types that serialize on exit.

@vercel

vercel Bot commented Jan 28, 2026

Copy link
Copy Markdown

@swaroop-osec is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@swaroop-osec swaroop-osec changed the title Fix/3946 relax duplicate mutable constraint Fix: Relax duplicate mutable constraint (#3946) Jan 28, 2026
@swaroop-osec swaroop-osec force-pushed the fix/3946-relax-duplicate-mutable-constraint branch from 0e63a1a to fba899a Compare January 28, 2026 16:53
@nutafrost nutafrost moved this to Security Review Required in Anchor 1.0 Feb 2, 2026
@nutafrost nutafrost moved this from Security Review Required to Security Review Done in Anchor 1.0 Feb 4, 2026
@swaroop-osec swaroop-osec force-pushed the fix/3946-relax-duplicate-mutable-constraint branch from 9f7256e to 140eec4 Compare February 12, 2026 14:34
@jamie-osec jamie-osec merged commit d790f27 into otter-sec:master Feb 12, 2026
57 of 58 checks passed
@github-project-automation github-project-automation Bot moved this from Security Review Done to Done in Anchor 1.0 Feb 12, 2026
Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Mar 25, 2026
)

* lang: Update duplicate mutable account validation logic to include only types that serialize on exit (otter-sec#3946)

* lang: Update documentation for `dup` constraint

* chore: Fix PR link
* lang: Update duplicate mutable account constraint to include `Migration` type
* lang: Allow duplicates in remaining accounts
* fix: use strict AnchorError assertion in nested duplicate test
* lang: Introduce `DuplicateMutableAccountKeys` trait for composite account validation
@swaroop-osec swaroop-osec deleted the fix/3946-relax-duplicate-mutable-constraint branch April 6, 2026 05:30
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