Skip to content

Exposing _call so we can sign typed data (EIP712)#61

Open
j05u3 wants to merge 1 commit into
y-pakorn:mainfrom
j05u3:j05u3-patch-1
Open

Exposing _call so we can sign typed data (EIP712)#61
j05u3 wants to merge 1 commit into
y-pakorn:mainfrom
j05u3:j05u3-patch-1

Conversation

@j05u3
Copy link
Copy Markdown

@j05u3 j05u3 commented Aug 13, 2023

This way we can sign typed data like this:

 await provider.getSigner().call<String>("_signTypedData", [
    jsify(domain), // jsify is required in case not being primitives
    jsify(types),
    jsify(value)
  ]); // returns "0x..." signature hex

This way we can sign typed data like this:

```
 await provider.getSigner().call<String>("_signTypedData", [
    jsify(domain), // jsify is required in case not being primitives
    jsify(types),
    jsify(value)
  ]); // returns "0x..." signature hex
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant