From e5fb9b3ee6aaec03c0740b0cf28d0fafb98bb795 Mon Sep 17 00:00:00 2001 From: Pessina Date: Thu, 24 Oct 2024 18:01:14 +0700 Subject: [PATCH] fix: include contractId on Wallet instance --- src/pages/_app.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 4a4c7111f..48affa751 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -20,7 +20,7 @@ import { useState } from 'react'; import { CookiePrompt } from '@/components/CookiePrompt'; import { ResearchFormWizard } from '@/components/research-form-wizard/ResearchFormWizard'; import { NearContext, Wallet } from '@/components/wallet-selector/WalletSelector'; -import { gleapSdkToken, networkId } from '@/config'; +import { gleapSdkToken, networkId, signInContractId } from '@/config'; import { useBosLoaderInitializer } from '@/hooks/useBosLoaderInitializer'; import { useHashUrlBackwardsCompatibility } from '@/hooks/useHashUrlBackwardsCompatibility'; import { useCookieStore } from '@/stores/cookieData'; @@ -37,7 +37,7 @@ if (typeof window !== 'undefined') { if (gleapSdkToken) Gleap.initialize(gleapSdkToken); } -const wallet = new Wallet({ networkId: networkId }); +const wallet = new Wallet({ networkId: networkId, createAccessKeyFor: signInContractId }); initPostHog(); export default function App({ Component, pageProps }: AppPropsWithLayout) {