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
{{ message }}
This repository was archived by the owner on Nov 24, 2021. It is now read-only.
I am currently trying to "encode" some ledger_data objects from rippled. There are a many objects which can not be encoded. The error is:
[2021-06-08 19:58:17] [LOG] Error: 283 is not a valid hex-string
at Function.UInt64.from (..\node_modules\ripple-binary-codec\dist\types\uint-64.js:60:23)
at ..\node_modules\ripple-binary-codec\dist\types\st-object.js:129:56
at Array.forEach ()
at Function.STObject.from (..\node_modules\ripple-binary-codec\dist\types\st-object.js:128:16)
at serializeObject (..\node_modules\ripple-binary-codec\dist\binary.js:59:32)
at Object.encode (..\node_modules\ripple-binary-codec\dist\index.js:24:12)
The above example occurs when encoding following ledger object:
There are many more objects which can actually not be encoded - mostly (a lot!) RippleState and DirectoryNode objects.
In the above example, the "HighNode" value seems to be the culprit. (same for LowNode in other objects).
An example for an error encoding a DirectoryNode is: