Skip to content

Commit

Permalink
chore: Update exmaple
Browse files Browse the repository at this point in the history
  • Loading branch information
rrr523 committed Sep 8, 2023
1 parent 06b933a commit b7c04f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
8 changes: 0 additions & 8 deletions examples/nextjs/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ export const client = Client.create(GRPC_URL, String(GREEN_CHAIN_ID), {
'https://unpkg.com/@bnb-chain/[email protected]/dist/node/zk-crypto.wasm',
});

export const client2 = Client.create('xx222x', String('346345'), {
zkCryptoUrl:
'https://unpkg.com/@bnb-chain/[email protected]/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'));
Expand Down
6 changes: 1 addition & 5 deletions examples/nextjs/src/components/query/index.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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
Expand Down

0 comments on commit b7c04f2

Please sign in to comment.