-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
protocols/horizon: Handle MaxFee and FeeCharged as ints or strings wh…
…en parsing JSON (#2492) In Horizon v1.1.0 we changed the type of FeeCharged and MaxFee from int32 to int64. Once Horizon SDKs have been prepared for the type change, Horizon will need to start encoding those fields as strings when serializing to JSON. That is necessary because JSON and javascript do not support 64 bit numbers as a native type. When the Horizon Go SDK unmarshalls the Horizon Transaction JSON it should be able to handle responses which have the fields encoded as ints and responses which have the fields encoded as strings.
- Loading branch information
Showing
2 changed files
with
153 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters