From b7c04f257b6588018b87c17e9752496eb1e9d836 Mon Sep 17 00:00:00 2001 From: rrr523 Date: Fri, 8 Sep 2023 21:18:51 +0800 Subject: [PATCH] chore: Update exmaple --- examples/nextjs/src/client/index.ts | 8 -------- examples/nextjs/src/components/query/index.tsx | 6 +----- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/examples/nextjs/src/client/index.ts b/examples/nextjs/src/client/index.ts index c5059d99..59699810 100644 --- a/examples/nextjs/src/client/index.ts +++ b/examples/nextjs/src/client/index.ts @@ -6,14 +6,6 @@ export const client = Client.create(GRPC_URL, String(GREEN_CHAIN_ID), { 'https://unpkg.com/@bnb-chain/greenfield-zk-crypto@0.0.3-alpha.0/dist/node/zk-crypto.wasm', }); -export const client2 = Client.create('xx222x', String('346345'), { - zkCryptoUrl: - 'https://unpkg.com/@bnb-chain/greenfield-zk-crypto@0.0.3-alpha.0/dist/node/zk-crypto.wasm', -}); - -console.log(client); -console.log(client2); - export const getSps = async () => { const sps = await client.sp.getStorageProviders(); const finalSps = (sps ?? []).filter((v: any) => v.endpoint.includes('nodereal')); diff --git a/examples/nextjs/src/components/query/index.tsx b/examples/nextjs/src/components/query/index.tsx index 25683d9d..4e63b53d 100644 --- a/examples/nextjs/src/components/query/index.tsx +++ b/examples/nextjs/src/components/query/index.tsx @@ -1,4 +1,4 @@ -import { client, client2 } from '@/client'; +import { client } from '@/client'; import { ACCOUNT_PRIVATEKEY } from '@/config/env'; import { getOffchainAuthKeys } from '@/utils/offchainAuth'; import { Long } from '@bnb-chain/greenfield-js-sdk'; @@ -20,10 +20,6 @@ export const QueryComponent = () => { const account = await client.account.getAccount(address); console.log('account', account); - - const account2 = await client2.account.getAccount(address); - - console.log('account2', account2); }} > get account