fix typing

This commit is contained in:
Mayukha Vadari
2021-11-30 14:29:18 -05:00
parent 3124a281b5
commit 34ed8afae0

View File

@@ -31,7 +31,7 @@ function fieldHeader(type: number, nth: number): Buffer {
* @brief: Bytes, name, and ordinal representing one type, ledger_type, transaction type, or result
*/
export class Bytes {
readonly bytes: Uint8Array
readonly bytes: Buffer
constructor(
readonly name: string,
@@ -49,7 +49,7 @@ export class Bytes {
}
toBytesSink(sink: BytesList): void {
sink.put(Buffer.concat([this.bytes]))
sink.put(this.bytes)
}
toBytes(): Uint8Array {