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

SEP-24: make account deposit request parameter optional #1343

Merged
merged 2 commits into from
Feb 7, 2023

Conversation

JakeUrban
Copy link
Contributor

@JakeUrban JakeUrban commented Feb 6, 2023

resolves #1342

Makes the account parameter for the POST /transactions/deposit/interactive request optional to match the POST /transactions/withdraw/interactive request.

SEP-24 originally did not require SEP-10, and because of that, required that the client specify the destination account of the payment via the deposit request body. When we introduced SEP-10, we should have also updated the SEP to have anchors default to using the authenticated account as the destination.

This change will make the deposit request's account parameter definition consistent with the withdraw request's account parameter, which is also optional.

This is technically a breaking change for anchors that assume the account field will always be present, although in practice this is easy for wallets to work around.

@JakeUrban JakeUrban marked this pull request as ready for review February 6, 2023 21:48
Copy link
Contributor

@lijamie98 lijamie98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JakeUrban JakeUrban merged commit 10f55b6 into master Feb 7, 2023
@JakeUrban JakeUrban deleted the sep24-deposit-make-account-optional branch February 7, 2023 01:32
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 this pull request may close these issues.

SEP-24: make account for deposit request optional to match withdraw request
2 participants