Skip to content

Commit

Permalink
feat(freighter): connectors should not need any parameter to be initi…
Browse files Browse the repository at this point in the history
…alizated
  • Loading branch information
esteblock committed Mar 30, 2023
1 parent 07f7ae8 commit 6cd04f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/getDefaultConnectors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const getDefaultConnectors = (
{
groupName: 'Popular',
connectors: [
freighter({ appName, chains }),
freighter(),
],
},
];
Expand Down
9 changes: 2 additions & 7 deletions packages/freighter/src/index.tsx
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 6cd04f9

Please sign in to comment.