mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-22 13:15:49 +00:00
ripple-binary-codec refactor (#88)
Refactored all components in ripple-binary-codec /src
This commit is contained in:
@@ -127,7 +127,8 @@ class BinarySerializer {
|
||||
*/
|
||||
writeFieldAndValue(field: FieldInstance, value: SerializedType): void {
|
||||
const associatedValue = field.associatedType.from(value);
|
||||
assert(associatedValue.toBytesSink, field.name);
|
||||
assert(associatedValue.toBytesSink !== undefined);
|
||||
assert(field.name !== undefined);
|
||||
|
||||
this.sink.put(field.header);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user