diff --git a/gameApi/index.ts b/gameApi/index.ts index a12e60f..d9c7967 100644 --- a/gameApi/index.ts +++ b/gameApi/index.ts @@ -12,8 +12,10 @@ import {TGameType} from 'types/game'; import {fetchSigner} from '@wagmi/core'; import {useState} from "react"; -const provider = new ethers.providers.AlchemyProvider('matic', process.env.NEXT_PUBLIC_ALCHEMY_API_KEY!); +const provider = + new ethers.providers.AlchemyProvider('matic', process.env.NEXT_PUBLIC_ALCHEMY_API_KEY!); console.log('ALCHEMY KEY', provider) +console.log('NEXT_PUBLIC_ALCHEMY_API_KEY', process.env.NEXT_PUBLIC_ALCHEMY_API_KEY!) const getSdk = async () => getPolygonSdk(await getSigner()) const getSdkRead = () => getPolygonSdk(provider); export const getArbiter = async (): Promise => (await getSdk()).arbiter;