-
Notifications
You must be signed in to change notification settings - Fork 77
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
Sequence JSON return types are inconsistent across methods #1081
Comments
For some additional details and context, here are all the occurrences I can find of a ledger sequence number in the methods, and how it's returned
Seems like it's only returned as a number in the |
Ledger sequences are uint32 in the xdr, so I don't think we need to be communicating the sequence as a int64 or as a string. It looks like most of the fields need updating. |
Looks like there's also some discrepancies between ledger close time representations. |
The change to getLatestLedger will be breaking for downstream systems, so we'll need to make sure to alert downstream SDK providers about this (possibly just a comment on the existing issues we sent out) |
I've noticed that the ledger sequence number isn't always returned as the same type in some of the Soroban-RPC methods. The
getLatestLedger
method returns thesequence
as auint32
. Elsewhere when a ledger's sequence number is returned, it's stringified in the JSON response.I could've sworn I noticed this same kind of thing with a
protocolVersion
field in two of the methods, but I'm not finding it now. I might've just been conflating some things in my head.The text was updated successfully, but these errors were encountered: