tronprotocol / tronweb

Javascript API Library for interacting with the TRON Network
MIT License
388 stars 259 forks source link

A typo in `latest_operation_time`? #495

Closed basharov closed 2 months ago

basharov commented 3 months ago

When I call tronWeb.trx.getAccount(address), I see an object where there is a key latest_opration_time, which probably is with a typo and should be latest_operation_time instead?

ferdinand026 commented 3 months ago

@basharov It is not an issue of tronweb, the return value of "tronWeb.trx.getAccount(address)" is acturally returned by java-tron node. This is a legacy issue with TRON protobuf, there is a typo in TRON protobuf, and it is marked as "FIXME fix grammar" to plan to fix it in the furture releases. But since protobuf changes may affect surrounding projects, more discussion is needed. And once the java-tron code is fixed, the typo in returned value of getAccount API of tronweb will be fixed automatically.