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

[Fix] SEP-6: Only patch transaction if request field is not null #1141

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

philipliu
Copy link
Contributor

Description

SEP-6 fields are patched without using the updateField method, so it sets any fields that to null that aren't specified in the patch transaction request.

Context

This is how fields are patched in SEP-24 and SEP-31.

Testing

  • ./gradlew test

Known limitations

The class is missing unit tests, but PATCH transactions will be deprecated soon in favor of RPC API, anyway.

@philipliu philipliu marked this pull request as ready for review October 5, 2023 18:58
Copy link
Contributor

@JiahuiWho JiahuiWho left a comment

Choose a reason for hiding this comment

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

LGTM

@philipliu philipliu merged commit b6ddd78 into stellar:sep-6 Oct 5, 2023
@philipliu philipliu deleted the fix/sep-6-observer branch October 5, 2023 22:44
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.

2 participants