Update default export (#98)

Updated default exports to by changing `export` to `export =`
This commit is contained in:
Nathan Nichols
2020-08-20 12:37:12 -05:00
parent e9d5ae0d35
commit 34d2d2c9ed
2 changed files with 4 additions and 4 deletions

View File

@@ -100,7 +100,7 @@ function decodeQuality(value: string): string {
return quality.decode(value).toString();
}
export {
export = {
decode,
encode,
encodeForSigning,

View File

@@ -143,9 +143,9 @@ function ledgerHash(header: ledgerObject): Hash256 {
UInt32.from<number>(header.ledger_index).toBytesSink(hash);
UInt64.from<bigint>(BigInt(header.total_coins)).toBytesSink(hash);
Hash256.from(header.parent_hash).toBytesSink(hash);
Hash256.from(header.transaction_hash).toBytesSink(hash);
Hash256.from(header.account_hash).toBytesSink(hash);
Hash256.from<string>(header.parent_hash).toBytesSink(hash);
Hash256.from<string>(header.transaction_hash).toBytesSink(hash);
Hash256.from<string>(header.account_hash).toBytesSink(hash);
UInt32.from<number>(header.parent_close_time).toBytesSink(hash);
UInt32.from<number>(header.close_time).toBytesSink(hash);
UInt8.from<number>(header.close_time_resolution).toBytesSink(hash);