You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ echo -n 'AAAACgAAAAAAAAAAAAAAAAAAAAE=' | stellar-xdr d --type ScVal
{"i128":{"hi":0,"lo":1}}
That is not very ergonomic to work with.
Instead, we could render it as:
$ echo -n 'AAAACgAAAAAAAAAAAAAAAAAAAAE=' | stellar-xdr d --type ScVal
{"i128":1}
In the same way we render u64/i64:
$ echo -n 'AAAABgAAAAAAAAAB' | stellar-xdr d --type ScVal
{"i64":1}
_There is the issue that JavaScript implementations of JSON parsers cannot parse integer values over the size of 53-bits correctly, so the number should also probably be stringified, but that needs addressing for the 64-bit ScVal types as well, and is a separate issue tracked in the following issue and tackled at the same time there:
For example:
That is not very ergonomic to work with.
Instead, we could render it as:
In the same way we render u64/i64:
_There is the issue that JavaScript implementations of JSON parsers cannot parse integer values over the size of 53-bits correctly, so the number should also probably be stringified, but that needs addressing for the 64-bit ScVal types as well, and is a separate issue tracked in the following issue and tackled at the same time there:
The text was updated successfully, but these errors were encountered: