This repository was archived by the owner on Oct 7, 2024. It is now read-only.
Commit c3afc44
authored
Fix
The types for the package `@metamask/eth-sig-util` were being
overwritten by a local type declaration. That has been removed, and all
type errors have been resolved.
All of the type errors were related to `normalize` returning
`undefined` if given a nullish input. We never pass it a nullish input,
but TypeScript wasn't able to infer that, so that issue was addressed
with type casts. This isn't ideal, but it's temporary. Once we finish
migrating all Keyrings to the new Keyring interface, we won't need to
normalize addresses anymore at all.@metamask/eth-sig-util types (#248)1 parent 2adb432 commit c3afc44
2 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
338 | 340 | | |
339 | 341 | | |
340 | 342 | | |
| |||
515 | 517 | | |
516 | 518 | | |
517 | 519 | | |
518 | | - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
519 | 523 | | |
520 | 524 | | |
521 | 525 | | |
| |||
697 | 701 | | |
698 | 702 | | |
699 | 703 | | |
700 | | - | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
701 | 707 | | |
702 | 708 | | |
703 | 709 | | |
| |||
1086 | 1092 | | |
1087 | 1093 | | |
1088 | 1094 | | |
1089 | | - | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
1090 | 1098 | | |
1091 | 1099 | | |
1092 | 1100 | | |
| |||
This file was deleted.
0 commit comments