mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-23 21:55:48 +00:00
refactored src/types (#86)
Final refactor of the src/types directory. Refactored Amount and STObject classes, and finalized SerializedType and Comparable classes.
This commit is contained in:
@@ -19,7 +19,7 @@ function serializeObject(object, opts = <any>{}) {
|
||||
bytesList.put(prefix);
|
||||
}
|
||||
const filter = signingFieldsOnly ? (f) => f.isSigningField : undefined;
|
||||
coreTypes.STObject.from(object).toBytesSink(bytesList, filter);
|
||||
coreTypes.STObject.from(object, filter).toBytesSink(bytesList);
|
||||
if (suffix) {
|
||||
bytesList.put(suffix);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user