-
Notifications
You must be signed in to change notification settings - Fork 158
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
Include new Protocol 19 Preconditions on Transaction API resource #428
Include new Protocol 19 Preconditions on Transaction API resource #428
Conversation
…N for Transaction Response
@SerializedName("min_account_sequence") | ||
long minAccountSequence; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a distinction between when minAccountSequence
is set or not, so you can't treat not set to a default value like 0. Not set means one-less than the tx seq, but 0 means 0. @Shaptic This may be an issue in Horizon's API and in other SDKs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See related conversation: https://discord.com/channels/897514728459468821/971454936615358485/971454986988957736
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, ok, thanks for mentioning this, I updated the sdk here to model that as a nullable object to signal if wasn't present in the json.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a pointer in the API, so we're good
… for not set/present
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! Does the account response resource also have the new sequence_ledger
/time
fields?
Yes, those have been added as nullable: |
Update the Transaction API Response model to include new P19 Preconditions, this also supports the latest changes in Horizon API to Preconditions json model of datetime attribs being expressed in unix epoch.