Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
S1ep opened this issue Oct 18, 2024 · 6 comments

Comments

@S1ep
Copy link

S1ep commented Oct 18, 2024

截屏2024-10-18 11 10 14
@S1ep S1ep added the type:docs label Oct 18, 2024
@laurenceja
Copy link

@S1ep What is the contract address?

@S1ep
Copy link
Author

S1ep commented Oct 18, 2024

@S1ep What is the contract address?

TCBLTVx7dJWcFBBNE7e3QEPHXEtigsbpth

@laurenceja
Copy link

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
Copy link
Author

S1ep commented Oct 18, 2024

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.

@laurenceja
Copy link

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
Copy link
Author

S1ep commented Oct 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants