Skip to content

Commit

Permalink
Merge pull request #1338 from near/fix_fast_auth
Browse files Browse the repository at this point in the history
fix: include contractId on Wallet instance
  • Loading branch information
Pessina authored Oct 24, 2024
2 parents dd30f96 + e5fb9b3 commit 2e113f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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) {
Expand Down

0 comments on commit 2e113f3

Please sign in to comment.