Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mzxyz committed Jan 23, 2024
1 parent dff754f commit 3bfed86
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ type Disputes @entity {
isFinalized: Boolean!

fisherman: String!
indexer: String!
runner: String!

slashAmount: BigInt
returnAmount: BigInt
Expand Down
4 changes: 2 additions & 2 deletions src/mappings/disputeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function handleDisputeOpen(
logger.info('handleDisputeOpen');
assert(event.args, 'No event args');

const { disputeId, fisherman, indexer, _type } = event.args;
const { disputeId, fisherman, runner, _type } = event.args;

const disputeType = getDisputeType(_type);

Expand All @@ -25,7 +25,7 @@ export async function handleDisputeOpen(
state: DisputeState.ONGOING,
disputeType,
isFinalized: false,
indexer,
runner,
fisherman,
});

Expand Down
4 changes: 2 additions & 2 deletions src/mappings/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ export enum Contracts {
PLAN_MANAGER_ADDRESS = 'PlanManager',
SA_REGISTRY_ADDRESS = 'ServiceAgreementRegistry',
REWARD_DIST_ADDRESS = 'RewardsDistributor',
KSQT_ADDRESS = 'SQToken',
SQT_ADDRESS = 'L2SQToken',
}

export function getContractAddress(
networkId: number,
contract: Contracts
): string {
const deploymentFile =
networkId === 80001 ? testnetDeploymentFile : testnetDeploymentFile;
networkId === 84532 ? testnetDeploymentFile : testnetDeploymentFile;
return deploymentFile.child[contract].address;
}

Expand Down

0 comments on commit 3bfed86

Please sign in to comment.