11import { CredentialResponse , googleLogout } from "@react-oauth/google" ;
22import { AuthUserInfo } from "@web3auth/auth" ;
3- import { CHAIN_NAMESPACES , IProvider , log , WEB3AUTH_NETWORK , IPlugin } from "@web3auth/base" ;
3+ import { CHAIN_NAMESPACES , getChainConfig , IPlugin , IProvider , log , WEB3AUTH_NETWORK } from "@web3auth/base" ;
44import { EthereumPrivateKeyProvider } from "@web3auth/ethereum-provider" ;
55import { PasskeysPlugin } from "@web3auth/passkeys-sfa-plugin" ;
66// Import Single Factor Auth SDK for no redirect flow
77import { ADAPTER_EVENTS , decodeToken , UserAuthInfo , Web3Auth } from "@web3auth/single-factor-auth" ;
88import { WalletServicesPlugin } from "@web3auth/wallet-services-plugin" ;
99import { createContext , ReactNode , useCallback , useContext , useEffect , useMemo , useState } from "react" ;
1010
11- import RPC from "../evm.ethers" ;
12- import { shouldSupportPasskey } from "../utils" ;
1311import {
1412 AccountAbstractionProvider ,
1513 BiconomySmartAccount ,
@@ -19,6 +17,8 @@ import {
1917 TrustSmartAccount ,
2018} from "@web3auth/account-abstraction-provider" ;
2119import { getDefaultBundlerUrl } from "../config" ;
20+ import RPC from "../evm.ethers" ;
21+ import { shouldSupportPasskey } from "../utils" ;
2222
2323type PasskeysData = {
2424 id : number ;
@@ -119,17 +119,7 @@ const verifier = "w3a-sfa-web-google";
119119
120120const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ" ; // get from https://dashboard.web3auth.io
121121
122- export const chainConfigMain = {
123- chainId : "0x1" ,
124- displayName : "Ethereum Mainnet" ,
125- chainNamespace : CHAIN_NAMESPACES . EIP155 ,
126- tickerName : "Ethereum" ,
127- ticker : "ETH" ,
128- decimals : 18 ,
129- rpcTarget : "https://rpc.ankr.com/eth" ,
130- blockExplorerUrl : "https://etherscan.io" ,
131- logo : "https://cryptologos.cc/logos/ethereum-eth-logo.png" ,
132- } ;
122+ export const chainConfigMain = getChainConfig ( CHAIN_NAMESPACES . EIP155 , "0x1" , clientId ) ! ;
133123
134124// const chainConfigTest = {
135125// chainId: "0xaa36a7",
@@ -474,8 +464,8 @@ export function Playground({ children }: IPlaygroundProps) {
474464 const walletServicePlugin = new WalletServicesPlugin ( {
475465 walletInitOptions : {
476466 whiteLabel : {
477- logoLight : "https://web3auth.io/images/ web3auth-logo.svg" ,
478- logoDark : "https://web3auth.io/images/ web3auth-logo-w.svg" ,
467+ logoLight : "https://images. web3auth.io/web3auth-logo-w .svg" ,
468+ logoDark : "https://images. web3auth.io/web3auth-logo-w-light .svg" ,
479469 } ,
480470 confirmationStrategy : "modal" ,
481471 } ,
0 commit comments