Skip to content

Commit

Permalink
Rename function.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacarmina committed Dec 16, 2024
1 parent 58d4491 commit 72e7ead
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/Indexer/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import { create256Hash } from '../../utils/crypt.js'
import { URLUtils } from '../../utils/url.js'
import { makeDid } from '../core/utils/validateDdoHandler.js'
import { PolicyServer } from '../policyServer/index.js'
import { getPricesForDt } from './utils.js'
import { getPricesByDt } from './utils.js'

Check failure on line 44 in src/components/Indexer/processor.ts

View workflow job for this annotation

GitHub Actions / lint

'./utils.js' imported multiple times
class BaseEventProcessor {
protected networkId: number

Expand Down Expand Up @@ -763,7 +763,7 @@ export class OrderStartedEventProcessor extends BaseEventProcessor {
name: await datatokenContract.name(),
serviceId: ddo.services[serviceIndex].id,
orders: 1,
prices: getPricesForDt(datatokenContract, signer)
prices: getPricesByDt(datatokenContract, signer)
})
}
await orderDatabase.create(
Expand Down Expand Up @@ -849,7 +849,7 @@ export class OrderReusedEventProcessor extends BaseEventProcessor {
name: await datatokenContract.name(),
serviceId: serviceIdToFind,
orders: 1,
prices: getPricesForDt(datatokenContract, signer)
prices: getPricesByDt(datatokenContract, signer)
})
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Indexer/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export function findServiceIdByDatatoken(ddo: any, datatokenAddress: string): st
return serviceIdToFind
}

export async function getPricesForDt(
export async function getPricesByDt(
datatoken: ethers.Contract,
signer: Signer
): Promise<Price[]> {
Expand Down

0 comments on commit 72e7ead

Please sign in to comment.