File tree Expand file tree Collapse file tree 2 files changed +4
-26
lines changed
apps/portal/src/app/contracts/arbitrum-stylus Expand file tree Collapse file tree 2 files changed +4
-26
lines changed Original file line number Diff line number Diff line change @@ -112,19 +112,8 @@ import { createWallet, injectedProvider } from "thirdweb/wallets";
112112
113113const 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
129118const contract = getContract ({
130119 client,
Original file line number Diff line number Diff line change @@ -101,19 +101,8 @@ import { createWallet, injectedProvider } from "thirdweb/wallets";
101101
102102const 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
119108const contract = getContract ({
You can’t perform that action at this time.
0 commit comments