Skip to content

Fix meta-tx domain separator chainId caching#43

Open
cinnabarhorse wants to merge 1 commit intomasterfrom
codex/fix-meta-tx-domain-separator
Open

Fix meta-tx domain separator chainId caching#43
cinnabarhorse wants to merge 1 commit intomasterfrom
codex/fix-meta-tx-domain-separator

Conversation

@cinnabarhorse
Copy link
Member

MetaTransactionsFacet now computes the EIP-712 domain separator dynamically (using the current chainId) instead of relying on the cached value in AppStorage.

Why:

  • If chainId changes (fork/migration), cached domain separators allow signature replay across chainIds.

Tests:

  • npx hardhat compile

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.

1 participant