-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(cheatcodes
): add vm.signTypedData
cheatcode to Foundry
#10281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
✋ |
cheatcodes
): add vm.signTypedData
cheatcode to Foundry
@zerosnacks if it's avialable, may i take it ? |
sounds good @Haxry thank you! |
@grandizzy the user will provide the structured json data according to the EIP712 , the right ? |
@aviggiano pls chime in, if EIP712 you're looking for maybe #4818 to consider? |
@Haxry yes this was my idea @grandizzy #4818 is nice but I think it is independent from my feature request, no? |
It feels like it could go into ally first too no? And then get merged into foundry? |
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 byvm.sign
does not work.This feature request proposes introducing a new
vm.signTypedData
similar tocast 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
The text was updated successfully, but these errors were encountered: