Convert between json and hex representations of transactions and ledger entries on the XRP Ledger. Moved to: https://github.com/XRPLF/xrpl.js/tree/develop/packages/ripple-binary-codec
When trying to sign a transaction, if the TransactionType is invalid, the error message is cryptic and doesn't make it easy for developers to identify what the problem is.
Example:
In txJSON, if the TransactionType is "payment", the error looks like:
ripple-binary-codec/dist/serdes/binary-serializer.js:124
assert(associatedValue.toBytesSink !== undefined);
^
TypeError: Cannot read property 'toBytesSink' of undefined
at BinarySerializer.writeFieldAndValue [...]
(The correct TransactionType would be "Payment" as it is case-sensitive.)
When trying to sign a transaction, if the TransactionType is invalid, the error message is cryptic and doesn't make it easy for developers to identify what the problem is.
Example:
In txJSON, if the TransactionType is
"payment"
, the error looks like:(The correct TransactionType would be
"Payment"
as it is case-sensitive.)