From b719dc6ffaad29afa02288338f5879e9b7cf5da2 Mon Sep 17 00:00:00 2001 From: yoginawaka Date: Thu, 13 Feb 2025 16:07:33 +0000 Subject: [PATCH] Update components/providers/privy-provider.tsx --- components/providers/privy-provider.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/components/providers/privy-provider.tsx b/components/providers/privy-provider.tsx index 8cb1bac..93f2e70 100644 --- a/components/providers/privy-provider.tsx +++ b/components/providers/privy-provider.tsx @@ -33,13 +33,17 @@ export function Providers({ children }: { children: ReactNode }) { "mfa": { "noPromptOnMfaRequired": false }, - "defaultChain": 56, // BSC mainnet - "supportedChains": [{ - id: 56, - name: 'BNB Smart Chain', - rpcUrl: 'https://bsc-dataseed.binance.org/', - blockExplorer: 'https://bscscan.com' - }] + "networkConfigs": { + defaultNetwork: 56, + supportedNetworks: [ + { + chainId: 56, + name: 'BNB Smart Chain', + rpcUrl: 'https://bsc-dataseed.binance.org/', + blockExplorerUrl: 'https://bscscan.com' + } + ] + } }} > {children}