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 use address(0) as native token? #919

Open
armatrix opened this issue Nov 14, 2024 · 1 comment
Open

why use address(0) as native token? #919

armatrix opened this issue Nov 14, 2024 · 1 comment
Labels

Comments

@armatrix
Copy link

Component

General design optimization (improving efficiency, cleanliness, or developer experience)

Describe the suggested feature and problem it solves.

In solidity, zero value is usually used to handle mint, burn and other scenarios. In many languages, zero value has a special meaning. Using zero value as native token will cause some ambiguity in the check. For example, we usually judge that the address passed in cannot be zero address. Maybe address(F) would be better?

Describe the desired implementation.

replace native token wrapper from address(0) to address(F).

Describe alternatives.

No response

Additional context.

No response

Copy link

linear bot commented Nov 14, 2024

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

No branches or pull requests

1 participant