From 977af0ee59d9c9e95b2886845b161539d5f55274 Mon Sep 17 00:00:00 2001 From: danisharora099 Date: Wed, 29 Nov 2023 15:00:34 +0530 Subject: [PATCH 1/2] fix encoder creation --- packages/core/src/lib/message/version_0.ts | 4 ++-- packages/message-encryption/src/ecies.ts | 4 ++-- packages/message-encryption/src/symmetric.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core/src/lib/message/version_0.ts b/packages/core/src/lib/message/version_0.ts index a67b16a0dc..bb37c50358 100644 --- a/packages/core/src/lib/message/version_0.ts +++ b/packages/core/src/lib/message/version_0.ts @@ -128,7 +128,7 @@ export function createEncoder({ return new Encoder( contentTopic, ephemeral, - pubsubTopicShardInfo?.index + pubsubTopicShardInfo ? singleShardInfoToPubsubTopic(pubsubTopicShardInfo) : DefaultPubsubTopic, metaSetter @@ -193,7 +193,7 @@ export function createDecoder( pubsubTopicShardInfo?: SingleShardInfo ): Decoder { return new Decoder( - pubsubTopicShardInfo?.index + pubsubTopicShardInfo ? singleShardInfoToPubsubTopic(pubsubTopicShardInfo) : DefaultPubsubTopic, contentTopic diff --git a/packages/message-encryption/src/ecies.ts b/packages/message-encryption/src/ecies.ts index af393cef14..24d7aa0fee 100644 --- a/packages/message-encryption/src/ecies.ts +++ b/packages/message-encryption/src/ecies.ts @@ -107,7 +107,7 @@ export function createEncoder({ metaSetter }: EncoderOptions): Encoder { return new Encoder( - pubsubTopicShardInfo?.index + pubsubTopicShardInfo ? singleShardInfoToPubsubTopic(pubsubTopicShardInfo) : DefaultPubsubTopic, contentTopic, @@ -200,7 +200,7 @@ export function createDecoder( pubsubTopicShardInfo?: SingleShardInfo ): Decoder { return new Decoder( - pubsubTopicShardInfo?.index + pubsubTopicShardInfo ? singleShardInfoToPubsubTopic(pubsubTopicShardInfo) : DefaultPubsubTopic, contentTopic, diff --git a/packages/message-encryption/src/symmetric.ts b/packages/message-encryption/src/symmetric.ts index 37f8a52cb2..9854f5c665 100644 --- a/packages/message-encryption/src/symmetric.ts +++ b/packages/message-encryption/src/symmetric.ts @@ -107,7 +107,7 @@ export function createEncoder({ metaSetter }: EncoderOptions): Encoder { return new Encoder( - pubsubTopicShardInfo?.index + pubsubTopicShardInfo ? singleShardInfoToPubsubTopic(pubsubTopicShardInfo) : DefaultPubsubTopic, contentTopic, @@ -200,7 +200,7 @@ export function createDecoder( pubsubTopicShardInfo?: SingleShardInfo ): Decoder { return new Decoder( - pubsubTopicShardInfo?.index + pubsubTopicShardInfo ? singleShardInfoToPubsubTopic(pubsubTopicShardInfo) : DefaultPubsubTopic, contentTopic, From 0be1dae85440b43c0dd36cae822c116f68f06b60 Mon Sep 17 00:00:00 2001 From: Danish Arora <35004822+danisharora099@users.noreply.github.com> Date: Wed, 29 Nov 2023 15:48:50 +0530 Subject: [PATCH 2/2] bump nwaku to v0.22.0 (#1741) --- .github/workflows/ci.yml | 4 ++-- packages/tests/src/node/node.ts | 2 +- packages/tests/src/run-tests.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f57da9be15..94bec6e1b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,14 +72,14 @@ jobs: uses: ./.github/workflows/test-node.yml secrets: inherit with: - nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'wakuorg/nwaku:v0.21.0' }} + nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'wakuorg/nwaku:v0.22.0' }} test_type: node allure_reports: true node_optional: uses: ./.github/workflows/test-node.yml with: - nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'wakuorg/nwaku:v0.21.0' }} + nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'wakuorg/nwaku:v0.22.0' }} test_type: node-optional node_with_go_waku_master: diff --git a/packages/tests/src/node/node.ts b/packages/tests/src/node/node.ts index cc0dea09f6..f14a0de279 100644 --- a/packages/tests/src/node/node.ts +++ b/packages/tests/src/node/node.ts @@ -27,7 +27,7 @@ const WAKU_SERVICE_NODE_PARAMS = process.env.WAKU_SERVICE_NODE_PARAMS ?? undefined; const NODE_READY_LOG_LINE = "Node setup complete"; -const DOCKER_IMAGE_NAME = process.env.WAKUNODE_IMAGE || "wakuorg/nwaku:v0.21.0"; +const DOCKER_IMAGE_NAME = process.env.WAKUNODE_IMAGE || "wakuorg/nwaku:v0.22.0"; const isGoWaku = DOCKER_IMAGE_NAME.includes("go-waku"); diff --git a/packages/tests/src/run-tests.js b/packages/tests/src/run-tests.js index 897e00cf28..25d28181ef 100644 --- a/packages/tests/src/run-tests.js +++ b/packages/tests/src/run-tests.js @@ -3,7 +3,7 @@ import { promisify } from "util"; const execAsync = promisify(exec); -const WAKUNODE_IMAGE = process.env.WAKUNODE_IMAGE || "wakuorg/nwaku:v0.21.0"; +const WAKUNODE_IMAGE = process.env.WAKUNODE_IMAGE || "wakuorg/nwaku:v0.22.0"; async function main() { try {