Skip to content

Conversation

@ccashwell
Copy link
Member

Summary

  • Adds originChainId validation in ERC7683AllocatorLib.openForPreparation
    • enforces order.originChainId == block.chainid.
  • Introduces new error InvalidOriginChainId(uint256, uint256).

Changes

  • src/allocators/lib/ERC7683AllocatorLib.sol: added InvalidOriginChainId error and validation in openForPreparation.
  • test/ERC7683Allocator.t.sol: added negative test for invalid originChainId.

Rationale

Ensures orders are processed only on the intended origin chain, preventing misuse across chains.

Ensure gasless orders are processed only when originChainId matches current chain. Adds negative test for mismatch.
@ccashwell ccashwell requested a review from a team as a code owner September 11, 2025 13:50
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.

2 participants