Skip to content

Commit

Permalink
refactor: Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanmigimeno committed Jun 25, 2024
1 parent dbdf734 commit 22e5280
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/getter/getter.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class GetterWorker {

this.incentiveAddresses = this.config.incentivesAddresses;
const contractTypes = this.initializeContractTypes();
this.incentivesEscrowInterface = contractTypes.chainInterfaceInterface;
this.incentivesEscrowInterface = contractTypes.incentivesEscrowInterface;
this.topics = contractTypes.topics;

this.monitor = this.startListeningToMonitor(this.config.monitorPort);
Expand All @@ -64,22 +64,22 @@ class GetterWorker {
}

private initializeContractTypes(): {
chainInterfaceInterface: IMessageEscrowEventsInterface,
incentivesEscrowInterface: IMessageEscrowEventsInterface,
topics: string[][]
} {

const chainInterfaceInterface = IMessageEscrowEvents__factory.createInterface();
const incentivesEscrowInterface = IMessageEscrowEvents__factory.createInterface();
const topics = [
[
chainInterfaceInterface.getEvent('BountyPlaced').topicHash,
chainInterfaceInterface.getEvent('BountyClaimed').topicHash,
chainInterfaceInterface.getEvent('MessageDelivered').topicHash,
chainInterfaceInterface.getEvent('BountyIncreased').topicHash,
incentivesEscrowInterface.getEvent('BountyPlaced').topicHash,
incentivesEscrowInterface.getEvent('BountyClaimed').topicHash,
incentivesEscrowInterface.getEvent('MessageDelivered').topicHash,
incentivesEscrowInterface.getEvent('BountyIncreased').topicHash,
]
];

return {
chainInterfaceInterface,
incentivesEscrowInterface,
topics
}
}
Expand Down

0 comments on commit 22e5280

Please sign in to comment.