providers.waitForTransaction
return type does not match documentation
#1904
Unanswered
rhinodavid
asked this question in
Q&A
Replies: 1 comment
-
In v5, the strictNullCheck is not enabled. It is in v6, but for v5 null is always implicitly permitted. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The documentation for the providers
waitForTransaction
method [link] notes: If confirms is 0, this method is non-blocking and if the transaction has not been mined returns null. However, the return type for the function isPromise<TransactionReceipt>
[link].Should the type be updated to
Promise<TransactionReceipt | null>
or is it possible the documentation is incorrect?Beta Was this translation helpful? Give feedback.
All reactions