Skip to content

Add personal_sign as alias of eth_sign in anvil #7683

@efstajas

Description

@efstajas

Component

Anvil

Describe the feature you would like

We use anvil as a local testnet for our app's E2E tests. It works great for this, but unfortunately we ran into a bit of a roadblack when we added a new feature that makes use of signed messages for authentication with a backend. We call personal_sign on the user's wallet to create these signatures, and when doing so while connected to anvil's RPC, it throws: Error: processing response error (body="{\"jsonrpc\":\"2.0\",\"id\":46,\"error\":{\"code\":-32601,\"message\":\"Method not found\"}}"

I assume this is simply a case of the personal_sign method not being implemented. Is there any way it could be, or is there some workaround available today already? Thanks!

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-anvilCommand: anvilT-featureType: featurefirst issueA good way to start contributing

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions