Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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