Skip to content

Commit

Permalink
fix: add blockhash to react demo app
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansonhkg committed Feb 21, 2024
1 parent cb018a5 commit d125697
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion apps/react/src/app/lit-node-client-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,17 @@ const LitNodeClientPage = () => {
// @ts-ignore
globalThis.authBrowser = authBrowser;

const authsig = await authBrowser.checkAndSignAuthMessage({ chain: 'ethereum' });
const client = new LitJsSdk.LitNodeClient({
litNetwork: 'cayenne',
debug: true,
});

const latestBlockhash = client.getLatestBlockhash();

const authsig = await authBrowser.checkAndSignAuthMessage({
chain: 'ethereum',
nonce: latestBlockhash,
});
console.log('authsig:', authsig)
};

Expand Down

0 comments on commit d125697

Please sign in to comment.