From 6cd04f9143c960767ed8c02bfb49d3cd19ef5367 Mon Sep 17 00:00:00 2001 From: esteblock Date: Thu, 30 Mar 2023 17:26:10 -0300 Subject: [PATCH] feat(freighter): connectors should not need any parameter to be initializated --- packages/core/src/getDefaultConnectors.tsx | 2 +- packages/freighter/src/index.tsx | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/packages/core/src/getDefaultConnectors.tsx b/packages/core/src/getDefaultConnectors.tsx index fd8d672..5cd2f03 100644 --- a/packages/core/src/getDefaultConnectors.tsx +++ b/packages/core/src/getDefaultConnectors.tsx @@ -10,7 +10,7 @@ export const getDefaultConnectors = ( { groupName: 'Popular', connectors: [ - freighter({ appName, chains }), + freighter(), ], }, ]; diff --git a/packages/freighter/src/index.tsx b/packages/freighter/src/index.tsx index 4dce716..737afd4 100644 --- a/packages/freighter/src/index.tsx +++ b/packages/freighter/src/index.tsx @@ -1,13 +1,8 @@ /* eslint-disable sort-keys-fix/sort-keys-fix */ import freighterApi from "@stellar/freighter-api"; -import { WalletChain, NetworkDetails, Connector } from '@soroban-react/types'; +import {NetworkDetails, Connector } from '@soroban-react/types'; -export interface FreighterOptions { - appName?: string; - chains: WalletChain[]; -} - -export function freighter(_: FreighterOptions): Connector { +export function freighter(): Connector { return { id: 'freighter', name: 'Freighter',