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

Feature Request: Specify an AccountID instead of just "str" #16

Open
MartinThoma opened this issue Aug 20, 2021 · 1 comment
Open

Feature Request: Specify an AccountID instead of just "str" #16

MartinThoma opened this issue Aug 20, 2021 · 1 comment

Comments

@MartinThoma
Copy link

In a couple of places you could specify that a field should contain a stellar account id, e.g. PaymentOperation.from_ and PaymentOperation.to:

from pydantic import ConstrainedStr

class AccountId(ConstrainedStr):
    regex = "G[A-Za-z0-9]{55}"
@overcat
Copy link
Member

overcat commented Aug 23, 2021

Hello, thank you for your suggestion, but I assume that the data provided by Horizon is reliable, so I currently have no plans to add additional verification.

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

2 participants