-
-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The type signatures of many public functions were complex and misleading. This was primarily due to the widespread use of the types `TypedData` and `TypedMessage<T>`, which where inappropriate in most of the places they were used. The `TypedMessage<T>` type is used by the `signTypedData` function when the version is 'V3' or 'V4'. All references to this type outside of V3 and V4 of `signTypedData` have been removed. This also resulted in the `T` generic parameter being removed from many functions. The `TypedData` type didn't represent the actual type signature of any function, yet it was used to represent the input data for most functions. In most cases we had no specific expectations for the input type, so `unknown` is now used instead. In the case of `V1` of `signTypedData`, the expected type was always `EIP712TypedData[]`. The `TypedData` type has been reduced to just that one case where it was useful and accurate.
- Loading branch information
Showing
1 changed file
with
29 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters