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 independently with each input. There are also
tests for each input that should have an identical encoding between
V3 and V4, and each that should have non-matching signatures..

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

0 comments on commit b41746f

Please sign in to comment.