mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 19:55:51 +00:00
fix typing
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user