Skip to content

Commit

Permalink
fix: unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosantangelo committed Nov 30, 2021
1 parent b0425ac commit 4822aad
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export async function initComponents(): Promise<AppComponents> {
})
const contracts = createContractsComponent({
config,
logs,
fetcher,
collectionsSubgraph,
})
Expand Down
6 changes: 1 addition & 5 deletions src/ports/contracts/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,12 @@ let whitelistedAddresses: string[] = []
let lastFetch: number = Date.now()

export function createContractsComponent(
components: Pick<
AppComponents,
'config' | 'fetcher' | 'collectionsSubgraph' | 'logs'
>
components: Pick<AppComponents, 'config' | 'fetcher' | 'collectionsSubgraph'>
): IContractsComponent {
const {
config,
collectionsSubgraph,
fetcher: { fetch },
logs,
} = components

// Methods
Expand Down
1 change: 0 additions & 1 deletion test/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export async function initComponents(): Promise<TestComponents> {
})
const contracts = createContractsComponent({
config,
logs,
fetcher,
collectionsSubgraph,
})
Expand Down
4 changes: 0 additions & 4 deletions test/tests/components/contracts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ test('contracts component', function ({ components, stubComponents }) {
address = '0xabc123123'
contracts = createContractsComponent({
config,
logs,
fetcher,
collectionsSubgraph,
})
Expand Down Expand Up @@ -100,7 +99,6 @@ test('contracts component', function ({ components, stubComponents }) {
address = '0xabc123123'
contracts = createContractsComponent({
config,
logs,
fetcher,
collectionsSubgraph,
})
Expand Down Expand Up @@ -155,7 +153,6 @@ test('contracts component', function ({ components, stubComponents }) {

contracts = createContractsComponent({
config,
logs,
fetcher,
collectionsSubgraph,
})
Expand Down Expand Up @@ -199,7 +196,6 @@ test('contracts component', function ({ components, stubComponents }) {

contracts = createContractsComponent({
config,
logs,
fetcher,
collectionsSubgraph,
})
Expand Down

0 comments on commit 4822aad

Please sign in to comment.