tronprotocol/java-tron

Why the name of function 2 and function3 are same in the juststable main contract?

Closed this issue · 6 comments

S1ep commented
截屏2024-10-18 11 10 14

@S1ep What is the contract address?

S1ep commented

@S1ep What is the contract address?

TCBLTVx7dJWcFBBNE7e3QEPHXEtigsbpth

Although the function names are the same, but they have different parameters, so they are two different functions, and they have different function selector. https://tronscan.org/#/contract/TCBLTVx7dJWcFBBNE7e3QEPHXEtigsbpth/code

S1ep commented

Although the function names are the same, but they have different parameters, so they are two different functions, and they have different function selector. https://tronscan.org/#/contract/TCBLTVx7dJWcFBBNE7e3QEPHXEtigsbpth/code

I know they are two different functions because function selector of them are different, one is 1edf0c1e, the other is 516e9aec. I think it is better to name different names in tronscan to distinguish.

Tronscan will not modify the contract function's name, it only gets and shows all functions, user can trigger contract function through coding or tronscan, and the original function name can keep the two ways consistent.

S1ep commented

Tronscan will not modify the contract function's name, it only gets and shows all functions, user can trigger contract function through coding or tronscan, and the original function name can keep the two ways consistent.

Thx, got it.