Skip to content

Commit

Permalink
Add unit tests for encodeData
Browse files Browse the repository at this point in the history
The function `TypedDataUtils.encodeData` has been thoroughly tested
with all novel inputs I could think of. Each supported version (V3 and
V4) have been tested idependently with each input. There are also
tests for each input that should have an identical encoding between
V3 and V4, and each that should behave differently.

The `encodeData` assertions that accompanied the signature tests have
been deleted, as they're now redundant.
  • Loading branch information
Gudahtt committed Aug 3, 2021
1 parent 325a031 commit 26982ac
Show file tree
Hide file tree
Showing 2 changed files with 1,825 additions and 214 deletions.
Loading

0 comments on commit 26982ac

Please sign in to comment.