From ca498c0e70a1dbd7794976d1715e7bb6ef7c236c Mon Sep 17 00:00:00 2001 From: Ry Racherbaumer Date: Tue, 12 Mar 2024 13:21:27 -0500 Subject: [PATCH] fix: adjust types --- src/Message.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Message.ts b/src/Message.ts index b33a08b31..9edf0d677 100644 --- a/src/Message.ts +++ b/src/Message.ts @@ -189,16 +189,16 @@ export class MessageV1 extends MessageBase implements proto.MessageV1 { export class MessageV2 extends MessageBase implements proto.MessageV2 { senderAddress: string | undefined private header: proto.MessageHeaderV2 - senderHmac: Uint8Array - shouldPush: boolean + senderHmac?: Uint8Array + shouldPush?: boolean constructor( id: string, bytes: Uint8Array, obj: proto.Message, header: proto.MessageHeaderV2, - senderHmac: Uint8Array, - shouldPush: boolean + senderHmac?: Uint8Array, + shouldPush?: boolean ) { super(id, bytes, obj) this.header = header @@ -210,8 +210,8 @@ export class MessageV2 extends MessageBase implements proto.MessageV2 { obj: proto.Message, header: proto.MessageHeaderV2, bytes: Uint8Array, - senderHmac: Uint8Array, - shouldPush: boolean + senderHmac?: Uint8Array, + shouldPush?: boolean ): Promise { const id = bytesToHex(await sha256(bytes))