This commit is contained in:
trizin 2023-08-22 12:55:25 +00:00 committed by GitHub
parent abb0e94ec1
commit 922d5d7ee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ function getPredictSlot(
export function handlePredictionSubmitted(event: PredictionSubmitted): void {
const predictSlot = getPredictSlot(
event.address.toHexString(),
parseInt(event.params.slot)
parseInt(event.params.slot.toString())
)
const user = getUser(event.params.predictoor.toHex())
const id =
@ -142,7 +142,7 @@ export function handleNewSubscription(event: NewSubscription): void {
export function handleTruevalSubmitted(event: TruevalSubmitted): void {
const predictSlot = getPredictSlot(
event.address.toHexString(),
parseInt(event.params.slot)
parseInt(event.params.slot.toString())
)
const id = event.address.toHexString() + '-' + event.params.slot.toString()
const newPredictTrueVals = new PredictTrueVal(id) // they share the same id