fix(subgraph): casting-fixes #1345
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Kleros core
Execute
function is called andTokenAndEthShift
event is fired.handleTokenAndETHShift -> updatePenalty -> entities/Penalty.ts/line-9
, jurorAddress not being casted toHexString, fixed that
Dispute Template
_templateTag
Cross checked the weird characters for both the subgraphs and confirmed the above.
For cross checking, these are the event logs https://goerli.arbiscan.io/tx/0x0f2b2c6a2b145f5e8889a262db0a3fb2ebb72566f924746d6a3819ff6e2380ac#eventlog
that were triggering the code and resulting in warnings
PR-Codex overview
Detailed summary
toHexString()
method when assigning values tojurorAddress
anddisputeTemplate.templateTag
variables.disputeTemplate.templateDataMappings
variable to be assigned as a string value.