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
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
The text was updated successfully, but these errors were encountered:
As @wjmelements mentioned, there's chance of a collision with an actual wallet
Using address(0) for the native token is common practice because it's already understood as a placeholder for "nothing" or "no specific address" in Ethereum. It keeps things simple and consistent as most developers already use it this way in their code.
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
The text was updated successfully, but these errors were encountered: