You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The callback parameter of the sendAsync method (and maybe the send method too) returns a promise (not sure if this is always the case.. but it returns a promise sometimes). The implementation does not have a void signature.
Is there an existing issue for this?
Current Behavior
The
callback
parameter of thesendAsync
method (and maybe thesend
method too) returns a promise (not sure if this is always the case.. but it returns a promise sometimes). The implementation does not have avoid
signature.https://github.com/ChainSafe/web3.js/blob/0b890b70b977451836dc693614960256bcbcb6d8/packages/web3-core/types/index.d.ts#L444-L449
Expected Behavior
The
AbstractProvider
interface should be updated so that thecallback
parameter ofsendAsync
andsend
is correct.callback
's return type should either beunknown
orPromise<unknown>
depending on whether promises are always returned.Steps to Reproduce
N/A
Web3.js Version
1.7.3
Environment
No response
Anything Else?
No response
The text was updated successfully, but these errors were encountered: