Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sameh-farouk committed Jan 23, 2024
1 parent bc82649 commit 1fd6d03
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/mappings/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,12 @@ export async function contractCreated(
contractEvent = contractCreatedEvent.asV105
} else if (contractCreatedEvent.isV147) {
contractEvent = contractCreatedEvent.asV147
ctx.log.debug(`v147: ${contractEvent}`);
} else if (contractCreatedEvent.isV148) {
contractEvent = contractCreatedEvent.asV148
ctx.log.debug(`v148: ${contractEvent}`);
}

if (!contractEvent) {
ctx.log.error(`unknown version: ${contractCreatedEvent}`);
ctx.log.error(`found contract with unknown version! make sure types are updated`);
return
}

Expand Down Expand Up @@ -165,14 +163,12 @@ export async function contractUpdated(
contractEvent = contractUpdatedEvent.asV105
} else if (contractUpdatedEvent.isV147) {
contractEvent = contractUpdatedEvent.asV147
ctx.log.debug(`v147: ${contractEvent}`);
} else if (contractUpdatedEvent.isV148) {
contractEvent = contractUpdatedEvent.asV148
ctx.log.debug(`v148: ${contractEvent}`);
}

if (!contractEvent) {
ctx.log.error(`unknown version: ${contractUpdatedEvent}`);
ctx.log.error(`found contract with unknown version! make sure types are updated`);
return
}

Expand Down

0 comments on commit 1fd6d03

Please sign in to comment.