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

Activity

changed the title [-]Add vm.signTypedData[/-] [+]Add vm.signTypedData to Foundry[/+] on Apr 9, 2025
nadtech-hub

nadtech-hub commented on Apr 9, 2025

@nadtech-hub

changed the title [-]Add vm.signTypedData to Foundry[/-] [+]feat(`cheatcodes`): add `vm.signTypedData` cheatcode to Foundry[/+] on Apr 14, 2025
Haxry

Haxry commented on Apr 15, 2025

@Haxry
Contributor

@zerosnacks if it's avialable, may i take it ?

grandizzy

grandizzy commented on Apr 15, 2025

@grandizzy
Collaborator

sounds good @Haxry thank you!

7 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @bowd@aviggiano@nadtech-hub@grandizzy@PatrickAlphaC

    Issue actions

      feat(`cheatcodes`): add `vm.signTypedData` cheatcode to Foundry · Issue #10281 · foundry-rs/foundry