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))