Skip to content

Commit

Permalink
Merge pull request #1345 from kleros/fix(subgraph)/type-casting-fixes
Browse files Browse the repository at this point in the history
fix(subgraph): casting-fixes
  • Loading branch information
alcercu authored Dec 1, 2023
2 parents 20df70d + 4b73dd6 commit 2912f25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DisputeTemplate } from "../generated/schema";
export function handleDisputeTemplate(event: DisputeTemplateEvent): void {
const disputeTemplateId = event.params._templateId.toString();
const disputeTemplate = new DisputeTemplate(disputeTemplateId);
disputeTemplate.templateTag = event.params._templateTag.toString();
disputeTemplate.templateTag = event.params._templateTag.toHexString();
disputeTemplate.templateData = event.params._templateData.toString();
disputeTemplate.templateDataMappings = event.params._templateDataMappings.toString();
disputeTemplate.save();
Expand Down
2 changes: 1 addition & 1 deletion subgraph/src/entities/Penalty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function updatePenalty(event: TokenAndETHShift): void {
const disputeID = event.params._disputeID.toString();
const roundIndex = event.params._roundID.toString();
const roundID = `${disputeID}-${roundIndex}`;
const jurorAddress = event.params._account;
const jurorAddress = event.params._account.toHexString();
const penaltyID = `${roundID}-${jurorAddress}`;
const penalty = Penalty.load(penaltyID);
if (penalty) {
Expand Down

0 comments on commit 2912f25

Please sign in to comment.