tronprotocol / tronweb

Javascript API Library for interacting with the TRON Network
MIT License
414 stars 271 forks source link

ReferenceError: callback is not defined #479

Closed minipigbit closed 6 months ago

minipigbit commented 6 months ago

Hello!

I get the error ReferenceError: callback is not defined when trying to await tronWeb.transactionBuilder.triggerSmartContract.

What could be the problem? The system has been working for a long time without problems, and now this error has appeared.

start940315 commented 6 months ago

When you pass the wrong parameters to tronWeb.transactionBuilder.triggerSmartContract, it will throw this error. And we are going to fix it in the upcoming 5.x version.