Skip to content

Commit 1dd519d

Browse files
committed
fix(web): remove redundant awaits
1 parent f193b1c commit 1dd519d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/utils/switchChain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const addChain = async (
2626
provider: any,
2727
{ chainId, chainName, nativeCurrency, rpcUrls, blockExplorerUrls }: Chain
2828
) => {
29-
return await provider.request({
29+
return provider.request({
3030
method: "wallet_addEthereumChain",
3131
params: [
3232
{
@@ -44,7 +44,7 @@ const _switchChain = async (
4444
provider: any,
4545
chainId: keyof typeof SUPPORTED_CHAINS
4646
) => {
47-
return await provider.request({
47+
return provider.request({
4848
method: "wallet_switchEthereumChain",
4949
params: [{ chainId: "0x" + chainId.toString(16) }],
5050
});

0 commit comments

Comments
 (0)