diff --git a/packages/backend/microservices/played-games/played-games.service.ts b/packages/backend/microservices/played-games/played-games.service.ts index 693c3dd..c38a45c 100644 --- a/packages/backend/microservices/played-games/played-games.service.ts +++ b/packages/backend/microservices/played-games/played-games.service.ts @@ -60,6 +60,8 @@ export const createGame = async ( .select() .single(); + console.log(data); + if (error) { console.error(error); throw error; diff --git a/packages/backend/package.json b/packages/backend/package.json index d01e887..334f438 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -8,7 +8,7 @@ "build": "([ ! -d dist ] || rm -r dist) && tsc", "lint": "eslint .", "pretty": "prettier . --write", - "start": "node ./dist/app.js", + "start": "node --experimental-modules ./dist/backend/app.js", "types:database": "node ./scripts/generate-supabase-types.js" }, "engines": { diff --git a/packages/backend/services/ethers.service.ts b/packages/backend/services/ethers.service.ts index fd75a2a..579cddd 100644 --- a/packages/backend/services/ethers.service.ts +++ b/packages/backend/services/ethers.service.ts @@ -71,6 +71,7 @@ export class EthersService { await tx.wait(); + console.log(tx); return tx; } catch (error) { console.error(error); diff --git a/packages/backend/services/xmtp.service.ts b/packages/backend/services/xmtp.service.ts index c6a379f..9a48988 100644 --- a/packages/backend/services/xmtp.service.ts +++ b/packages/backend/services/xmtp.service.ts @@ -1,8 +1,6 @@ import { broadCastConfigEntities } from "../../common/xmtp/brodcaster-config"; import { base64ToBytes } from "../utils/functions"; import { RedisService } from "./redis.service"; -import { GrpcApiClient } from "@xmtp/grpc-api-client"; -import { RedisPersistence } from "@xmtp/redis-persistence"; import { Client, type XmtpEnv } from "@xmtp/xmtp-js"; import { Redis } from "ioredis"; @@ -49,6 +47,13 @@ export class XmtpClientService { } try { + const { GrpcApiClient } = await import( + "@xmtp/grpc-api-client" + ); + const { RedisPersistence } = await import( + "@xmtp/redis-persistence" + ); + const client = await Client.create(null, { privateKeyOverride: base64ToBytes(keyBundle), apiClientFactory: GrpcApiClient.fromOptions as any, diff --git a/packages/frontend/src/utils/service/arcade-contract.service.ts b/packages/frontend/src/utils/service/arcade-contract.service.ts index ffbadcd..45db238 100644 --- a/packages/frontend/src/utils/service/arcade-contract.service.ts +++ b/packages/frontend/src/utils/service/arcade-contract.service.ts @@ -13,6 +13,7 @@ export class ArcadeService { chain_id: number, ): Promise { try { + console.log(chain_id); console.log("Initializing ArcadeService"); console.log("Provider: ", provider); this.provider = new ethers.BrowserProvider(provider); diff --git a/packages/frontend/src/utils/service/web3auth.service.ts b/packages/frontend/src/utils/service/web3auth.service.ts index 3d437aa..1cb7af3 100644 --- a/packages/frontend/src/utils/service/web3auth.service.ts +++ b/packages/frontend/src/utils/service/web3auth.service.ts @@ -9,7 +9,7 @@ const privateKeyProvider = new EthereumPrivateKeyProvider({ const web3auth = new Web3Auth({ clientId: process.env.NEXT_PUBLIC_WEB3_AUTH_CLIENT_ID!, - web3AuthNetwork: WEB3AUTH_NETWORK.TESTNET, + web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET, privateKeyProvider, });