Skip to content

ERC-4337 Configured chainId Not Enforced Before Building & Signing UserOperations #127

Description

@nulllpc

The wallet configuration declares a​​ chainId​, but the ​​ERC-4337 account never uses it to pin the signing​ ​context.​​ _getChainId() ​​reads​​ eth_chainId​​ from the​​configured provider, caches it, and returns it.​ _buildUserOperation() ​​then signs the​​ UserOperation ​​against that provider-reported value.​ Because the configured​​ chainId ​​is never compared to​​the provider's response, a provider that reports a​ ​chain ID other than the one the application configured causes the library to build and sign a​ UserOperation​​for that other chain

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions