Skip to content

Commit 098fbbb

Browse files
committed
fixed comments
1 parent 5e3a575 commit 098fbbb

File tree

2 files changed

+4
-26
lines changed
  • apps/portal/src/app/contracts/arbitrum-stylus

2 files changed

+4
-26
lines changed

apps/portal/src/app/contracts/arbitrum-stylus/airdrop-contract/page.mdx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,8 @@ import { createWallet, injectedProvider } from "thirdweb/wallets";
112112

113113
const client = createThirdwebClient({ clientId });
114114

115-
const wallet = createWallet("io.metamask"); // pass the wallet id
116-
117-
// if user has wallet installed, connect to it
118-
if (injectedProvider("io.metamask")) {
119-
await wallet.connect({ client });
120-
}
121-
// open WalletConnect modal so user can scan the QR code and connect
122-
else {
123-
await wallet.connect({
124-
client,
125-
walletConnect: { showQrModal: true },
126-
});
127-
}
115+
const wallet = createWallet("io.metamask"); // or any wallet id
116+
const account = await wallet.connect({ client });
128117

129118
const contract = getContract({
130119
client,

apps/portal/src/app/contracts/arbitrum-stylus/stylus-contract/page.mdx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,8 @@ import { createWallet, injectedProvider } from "thirdweb/wallets";
101101

102102
const client = createThirdwebClient({ clientId });
103103

104-
const wallet = createWallet("io.metamask"); // pass the wallet id
105-
106-
// if user has wallet installed, connect to it
107-
if (injectedProvider("io.metamask")) {
108-
await wallet.connect({ client });
109-
}
110-
// open WalletConnect modal so user can scan the QR code and connect
111-
else {
112-
await wallet.connect({
113-
client,
114-
walletConnect: { showQrModal: true },
115-
});
116-
}
104+
const wallet = createWallet("io.metamask"); // or any wallet id
105+
const account = await wallet.connect({ client });
117106

118107
// 3 · Wrap the deployed contract
119108
const contract = getContract({

0 commit comments

Comments
 (0)