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
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
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
callbackparameter of thesendAsyncmethod (and maybe thesendmethod too) returns a promise (not sure if this is always the case.. but it returns a promise sometimes). The implementation does not have avoidsignature.https://github.com/ChainSafe/web3.js/blob/0b890b70b977451836dc693614960256bcbcb6d8/packages/web3-core/types/index.d.ts#L444-L449
Expected Behavior
The
AbstractProviderinterface should be updated so that thecallbackparameter ofsendAsyncandsendis correct.callback's return type should either beunknownorPromise<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