This repository was archived by the owner on Oct 7, 2024. It is now read-only.
Commit 3e102b5
authored
Narrow return type of
* Narrow return type of `signTypedMessage`
The method `signTypedMessage` always returns a string, but the declared
return type was `Bytes` (which is a type union of `string` along with
other things). This made the method more difficult to use, as callers
had to handle the other `Bytes` types as return values as well.
The method has been updated to use `string` as the return type.
* Narrow return type for encryption methods as wellsignTypedMessage and encryption methods (#249)1 parent c3afc44 commit 3e102b5
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
467 | 466 | | |
468 | 467 | | |
469 | 468 | | |
470 | | - | |
| 469 | + | |
471 | 470 | | |
472 | 471 | | |
473 | 472 | | |
| |||
490 | 489 | | |
491 | 490 | | |
492 | 491 | | |
493 | | - | |
| 492 | + | |
494 | 493 | | |
495 | 494 | | |
496 | 495 | | |
| |||
516 | 515 | | |
517 | 516 | | |
518 | 517 | | |
519 | | - | |
| 518 | + | |
520 | 519 | | |
521 | 520 | | |
522 | 521 | | |
| |||
0 commit comments