Fix
This commit is contained in:
parent
014b4f3299
commit
c4e8add944
|
@ -174,7 +174,13 @@ export function handleTruevalSubmitted(event: TruevalSubmitted): void {
|
|||
event.params.roundSumStakes.toBigDecimal(),
|
||||
BigInt.fromI32(decimals).toI32()
|
||||
)
|
||||
predictSlot.status = event.status
|
||||
|
||||
if (event.status == 1) {
|
||||
predictSlot.status = "Paying";
|
||||
}
|
||||
if (event.status == 2) {
|
||||
predictSlot.status = "Canceled";
|
||||
}
|
||||
predictSlot.save()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue