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
I've faced with the issue that tronweb library doesn't detect name(), symbol(), and decimals() methods for BUSD Token TMz2SWatiAtZVVcH2ebpsbVtYwUPT9EdjH
importTronWebfrom'tronweb';consttronWeb=newTronWeb({fullHost: 'https://api.trongrid.io/',});tronWeb.setAddress('TBQDyqoJ2ZJHTRDsrGQasyqBm4nUVLbWee');try{letcontract=awaittronWeb.contract().at('TMz2SWatiAtZVVcH2ebpsbVtYwUPT9EdjH');letresult=awaitcontract.name().call();console.log('result: ',result);}catch(error){console.error("trigger smart contract error",error)}// trigger smart contract error TypeError: contract.name is not a function
I've faced with the issue that
tronweb
library doesn't detectname()
,symbol()
, anddecimals()
methods for BUSD Token TMz2SWatiAtZVVcH2ebpsbVtYwUPT9EdjHCode sample from the documentation: https://developers.tron.network/docs/trc20-contract-interaction#name
5.1.0
18.14.2
For the Tether USD contract API works as expected.
The text was updated successfully, but these errors were encountered: