Skip to content

Commit

Permalink
Add signTypedData version validation
Browse files Browse the repository at this point in the history
The `Version` parameter used by `signTypedData`-related functions has
been converted to an enum, and all `version` parameters are now
validated against this enum.

The `TypedDataUtils` functions were written specifically for `V3` and
`V4`, so `V1` is disallowed. If anyone was using these functions with
`V1`, they were effectively using the `V3` versions.
  • Loading branch information
Gudahtt committed Sep 9, 2021
1 parent bd954ff commit 602f096
Show file tree
Hide file tree
Showing 2 changed files with 367 additions and 216 deletions.
Loading

0 comments on commit 602f096

Please sign in to comment.