Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
chore(examples): fix nodejs example on tapir with a temporary workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Apr 4, 2024
1 parent 088e62d commit f28ba6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/taco/nodejs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit f28ba6d

Please sign in to comment.