Skip to content

Commit fcd336c

Browse files
authored
docs(portal): fix syntax and compilation errors in v5 guide snippets (#8878)
1 parent e4fba08 commit fcd336c

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

apps/portal/src/app/typescript/v5/auth/page.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ import { privateKeyToAccount } from "thirdweb/wallets";
4242

4343
const privateKey = process.env.THIRDWEB_PRIVATE_KEY;
4444
const thirdwebClient = createThirdwebClient({
45-
secretKey: process.env.THIRDWEB_SECRET_KEY;
45+
secretKey: process.env.THIRDWEB_SECRET_KEY,
4646
});
4747

4848
const auth = createAuth({
4949
domain: "localhost:3000",
5050
client: thirdwebClient,
51-
adminAccount: privateKeyToAccount({client, privateKey})
51+
adminAccount: privateKeyToAccount({ client: thirdwebClient, privateKey }),
5252
});
5353

5454
// 1. generate a login payload for a client on the server side

apps/portal/src/app/typescript/v5/getting-started/page.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ import { inAppWallet } from "thirdweb/wallets"
8181
// create or access a wallet
8282
const wallet = inAppWallet();
8383
const account = await wallet.connect({
84-
client: TEST_CLIENT,
84+
client,
8585
strategy: "backend", // we use backend strategy to generate a wallet from a secret key
8686
walletSecret: "my-test-wallet-secret", // use this secret to access the same wallet across multiple scripts
8787
});
@@ -102,7 +102,8 @@ import { getWalletBalance } from "thirdweb/wallets";
102102

103103
// Get the balance of the account
104104
const balance = await getWalletBalance({
105-
account,
105+
client,
106+
address: account.address,
106107
chain: sepolia,
107108
});
108109
console.log("Balance:", balance.displayValue, balance.symbol);

0 commit comments

Comments
 (0)