diff --git a/apps/ticketing/src/utils/wallet.ts b/apps/ticketing/src/utils/wallet.ts index e7a9658..567d502 100644 --- a/apps/ticketing/src/utils/wallet.ts +++ b/apps/ticketing/src/utils/wallet.ts @@ -8,7 +8,7 @@ import { setupFastAuthWallet } from 'near-fastauth-wallet'; import { usePurchasedTickets } from '@/hooks/usePurchasedTickets'; import { NETWORK_ID } from './config'; -import { FunderEventMetadata, TicketMetadataExtra } from './helpers'; +import type { FunderEventMetadata, TicketMetadataExtra } from './helpers'; const modules = [ setupMyNearWallet(), @@ -23,19 +23,11 @@ const modules = [ }), ]; -const TESTNET_WALLET_SELECTOR_PARAMS: WalletSelectorParams = { - network: 'testnet', +export const WALLET_SELECTOR_PARAMS: WalletSelectorParams = { + network: NETWORK_ID, modules, }; -const MAINNET_WALLET_SELECTOR_PARAMS: WalletSelectorParams = { - network: 'mainnet', - modules, -}; - -export const WALLET_SELECTOR_PARAMS = - NETWORK_ID === 'mainnet' ? MAINNET_WALLET_SELECTOR_PARAMS : TESTNET_WALLET_SELECTOR_PARAMS; - export type EventDataForWallet = { event: FunderEventMetadata; tickets: {