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

Use branded type instead of string for addresses #870

Open
pociej opened this issue Sep 19, 2023 · 0 comments
Open

Use branded type instead of string for addresses #870

pociej opened this issue Sep 19, 2023 · 0 comments

Comments

@pociej
Copy link

pociej commented Sep 19, 2023

Currently we have

export type AddressLike = string | Promise<string> | Addressable;

which is kinda bad as whatever is not proper address and having simple branded type
could provide better experience and more safety.

@pociej pociej changed the title Use branded types instead of string for addresses Use branded type instead of string for addresses Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant