Skip to content

Commit 4c6a421

Browse files
lint
1 parent 686eab3 commit 4c6a421

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/thirdweb/src/wallets/wallet-connect/controller.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const storageKeys = {
6565
* @returns True if the wallet is a Wallet Connect wallet, false otherwise.
6666
*/
6767
export function isWalletConnect(
68-
wallet: Wallet<WalletId>
68+
wallet: Wallet<WalletId>,
6969
): wallet is Wallet<"walletConnect"> {
7070
return wallet.id === "walletConnect";
7171
}
@@ -78,7 +78,7 @@ export async function connectWC(
7878
emitter: WalletEmitter<WCSupportedWalletIds>,
7979
walletId: WCSupportedWalletIds | "walletConnect",
8080
storage: AsyncStorage,
81-
sessionHandler?: (uri: string) => void
81+
sessionHandler?: (uri: string) => void,
8282
): Promise<ReturnType<typeof onConnect>> {
8383
const provider = await initProvider(options, walletId, sessionHandler);
8484
const wcOptions = options.walletConnect;
@@ -150,7 +150,7 @@ export async function connectWC(
150150

151151
setRequestedChainsIds(
152152
chainsToRequest.map((x) => Number(x.split(":")[1])),
153-
storage
153+
storage,
154154
);
155155
const currentChainId = chainsToRequest[0]?.split(":")[1] || 1;
156156
const providerChainId = normalizeChainId(currentChainId);
@@ -159,7 +159,7 @@ export async function connectWC(
159159
method: "eth_requestAccounts",
160160
params: [],
161161
},
162-
`eip155:${providerChainId}`
162+
`eip155:${providerChainId}`,
163163
);
164164
const address = accounts[0];
165165
if (!address) {
@@ -199,7 +199,7 @@ export async function autoConnectWC(
199199
emitter: WalletEmitter<WCSupportedWalletIds>,
200200
walletId: WCSupportedWalletIds | "walletConnect",
201201
storage: AsyncStorage,
202-
sessionHandler?: (uri: string) => void
202+
sessionHandler?: (uri: string) => void,
203203
): Promise<ReturnType<typeof onConnect>> {
204204
const savedConnectParams: SavedConnectParams | null = storage
205205
? await getSavedConnectParamsFromStorage(storage, walletId)
@@ -340,7 +340,7 @@ function createAccount({
340340
},
341341
],
342342
},
343-
`eip155:${tx.chainId}`
343+
`eip155:${tx.chainId}`,
344344
)) as Hex;
345345

346346
trackTransaction({
@@ -372,7 +372,7 @@ function createAccount({
372372
method: "personal_sign",
373373
params: [messageToSign, this.address],
374374
},
375-
`eip155:${chain.id}`
375+
`eip155:${chain.id}`,
376376
);
377377
},
378378
async signTypedData(_data) {
@@ -401,7 +401,7 @@ function createAccount({
401401
method: "eth_signTypedData_v4",
402402
params: [this.address, typedData],
403403
},
404-
`eip155:${chain.id}`
404+
`eip155:${chain.id}`,
405405
);
406406
},
407407
};
@@ -415,7 +415,7 @@ function onConnect(
415415
provider: WCProvider,
416416
emitter: WalletEmitter<WCSupportedWalletIds>,
417417
storage: AsyncStorage,
418-
client: ThirdwebClient
418+
client: ThirdwebClient,
419419
): [Account, Chain, DisconnectFn, SwitchChainFn] {
420420
const account = createAccount({ address, chain, client, provider });
421421

@@ -489,7 +489,7 @@ async function switchChainWC(provider: WCProvider, chain: Chain) {
489489
*/
490490
function setRequestedChainsIds(
491491
chains: number[] | undefined,
492-
storage: AsyncStorage
492+
storage: AsyncStorage,
493493
) {
494494
storage?.setItem(storageKeys.requestedChains, stringify(chains));
495495
}

0 commit comments

Comments
 (0)