From f28ba6ddcc7410223e134c3ee5860b27cd743972 Mon Sep 17 00:00:00 2001
From: Piotr Roslaniec
Date: Thu, 4 Apr 2024 10:12:21 +0200
Subject: [PATCH] chore(examples): fix nodejs example on tapir with a temporary
workaround
---
examples/taco/nodejs/src/index.ts | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/examples/taco/nodejs/src/index.ts b/examples/taco/nodejs/src/index.ts
index cb9dfc485..fefbd1340 100644
--- a/examples/taco/nodejs/src/index.ts
+++ b/examples/taco/nodejs/src/index.ts
@@ -49,8 +49,11 @@ const encryptToBytes = async (messageString: string) => {
const message = toBytes(messageString);
console.log(format('Encrypting message ("%s") ...', messageString));
+ // TODO: Remove after fixing #506
+ const chain = domain === 'lynx' ? 80002 : 80001;
+
const hasPositiveBalance = new conditions.base.rpc.RpcCondition({
- chain: 80002,
+ chain,
method: 'eth_getBalance',
parameters: [':userAddress', 'latest'],
returnValueTest: {