Skip to content

Commit

Permalink
Fix switchNetwork method call
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennievon committed Aug 13, 2024
1 parent 421af27 commit 4cdd296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/src/bridge/frontend/src/stores/wallet-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const useWalletStore = create<WalletState>((set, get) => ({
? WalletNetwork.L2_TEN_TESTNET
: WalletNetwork.L1_SEPOLIA;

await provider.request({
await provider?.request({
method: requestMethods.switchNetwork,
params: [{ chainId: desiredNetwork }],
});
Expand Down

0 comments on commit 4cdd296

Please sign in to comment.