-
-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Labels
M: Good First IssueMisc: Good First IssueMisc: Good First Issue
Description
Ox Version
0.8.8
Current Behavior
In src/core/Authorization.ts#L270-L276, the code attempts to spread ...signature, where signature can be undefined:
Lines 270 to 276 in 4e9b494
| const signature = | |
| yParity && r && s ? Signature.fromTuple([yParity, r, s]) : undefined | |
| return from({ | |
| address, | |
| chainId: chainId === '0x' ? 0 : Number(chainId), | |
| nonce: nonce === '0x' ? 0n : BigInt(nonce), | |
| ...signature, |
This causes a TypeScript compilation error because object spread cannot destructure undefined.
Expected Behavior
no type errors
elboletairePasha8914 and evildeedz
Metadata
Metadata
Assignees
Labels
M: Good First IssueMisc: Good First IssueMisc: Good First Issue