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";
112
112
113
113
const client = createThirdwebClient ({ clientId });
114
114
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 });
128
117
129
118
const contract = getContract ({
130
119
client,
Original file line number Diff line number Diff line change @@ -101,19 +101,8 @@ import { createWallet, injectedProvider } from "thirdweb/wallets";
101
101
102
102
const client = createThirdwebClient ({ clientId });
103
103
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 });
117
106
118
107
// 3 · Wrap the deployed contract
119
108
const contract = getContract ({
You can’t perform that action at this time.
0 commit comments