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

Remove ValidAccountId and make AccountId a newtype #446

Closed
austinabell opened this issue Jun 23, 2021 · 0 comments · Fixed by #448
Closed

Remove ValidAccountId and make AccountId a newtype #446

austinabell opened this issue Jun 23, 2021 · 0 comments · Fixed by #448

Comments

@austinabell
Copy link
Contributor

austinabell commented Jun 23, 2021

The second wrapper type, ValidAccountId is only used for JSON serialization and validating the account ID is valid. This should all happen within one type, instead of AccountId being an alias to String

@austinabell austinabell mentioned this issue Jun 23, 2021
10 tasks
@austinabell austinabell changed the title ValidAccountId -- just AccountId should always be valid Remove ValidAccountId and make AccountId a newtype Jun 23, 2021
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

Successfully merging a pull request may close this issue.

1 participant