Skip to content

feat(cheatcodes): add vm.signTypedData cheatcode to FoundryΒ #10281

Open
@aviggiano

Description

@aviggiano

Component

Forge

Describe the feature you would like

I am building safe-utils to help automate the proposal of Safe transactions through Foundry.

One common use case of governance multisigs is Safe signers who use Ledger wallets.

The issue is that Ledger removed blind signing, so the eth_sign method invoked by vm.sign does not work.

This feature request proposes introducing a new vm.signTypedData similar to cast wallet sign --data. Since foundry already has JSON encoding/decoding cheatcodes, we could rely on the user to correctly construct the data parameters, and only pass them to the VM method.

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions