Closed prevostc closed 1 year ago
This issue has been locked since it has been closed for more than 14 days.
If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Viem version. If you have any questions or comments you can create a new discussion thread.
Is there an existing issue for this?
Package Version
1.10.9
Current Behavior
On zksync, we had this error:
I know that this error happens when bigints are used in arithmetic operations with null, undefined or numbers, but unfortunately I don't know which values were returned and I can't reproduce anymore.
The code this error points to is this (full transpile output below)
So my guess is that somehow receipt.blockNumber gets an undefined value somehow but I'm not sure.
Full transpile output of waitForTransactionReceipt.js is this:
Expected Behavior
If the blockNumber gets an undefined or null value, we probably want to throw an error like
InvalidSerializableTransactionError
orParseRpcError
?Steps To Reproduce
I was not able to reproduce.
Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)
No response
Anything else?
No response