-
Notifications
You must be signed in to change notification settings - Fork 504
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
Create a more idiomatic way of building a SEP010 Challenge Transaction #1466
Comments
Yes, we need to address at a minimum the "0" problem ASAP, but I really like this convenience function idea as well. @poliha let's hold off on this week's planned release until we can include something to address this, and get it in at the same time. Anchors are implementing SEP 10 so this is urgent. |
This is tracked in #1259. |
There is already a workaround for the "0" problem. Using |
@poliha is right. For this edge case (and in general when creating accounts manually), you can create a
Here |
Closed in #1468 |
Creating a challenge transaction for the SEP010 protocol should be something thats embeded in the SDK, given that most of the parameters can be predetermined.
Current to build such a transaction, you would need to do this...
Note that I have set the account sequence to
"0"
but the transaction builder will increment it to 1. And you can't set it to -1 because you will getcouldn't build transaction: failed to parse sequence number: Failed to parse account sequence number: strconv.ParseUint: parsing "-1": invalid syntax
.Generating a random nounce is trival but still an annoyance.
Something like the following would be a lot less effort.
The text was updated successfully, but these errors were encountered: