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
Here is the coding example in the official documentation:
.on('error', console.error); // If there's an out of gas error the second parameter is the receipt.
This example makes the parameters passed to the error handler rather unclear.
I believe that instead of plugging in a known function, you should plug in your own function, thus explicitly stating the parameters passed to it (in a manner similar to the one used for all the other handlers, i.e. the transactionHash handler, the confirmation handler and the receipt handler).
Versions
web3.js: 1.x
nodejs: not relevant
browser: not relevant
ethereum node: not relevant
The text was updated successfully, but these errors were encountered:
Description
Here is the coding example in the official documentation:
This example makes the parameters passed to the error handler rather unclear.
I believe that instead of plugging in a known function, you should plug in your own function, thus explicitly stating the parameters passed to it (in a manner similar to the one used for all the other handlers, i.e. the
transactionHash
handler, theconfirmation
handler and thereceipt
handler).Versions
The text was updated successfully, but these errors were encountered: