Update status

This commit is contained in:
trizin 2023-08-22 13:22:29 +03:00 committed by GitHub
parent 3c39d6eff2
commit 014b4f3299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -174,6 +174,7 @@ export function handleTruevalSubmitted(event: TruevalSubmitted): void {
event.params.roundSumStakes.toBigDecimal(),
BigInt.fromI32(decimals).toI32()
)
predictSlot.status = event.status
predictSlot.save()
}
@ -187,10 +188,10 @@ export function handleSettingChanged(event: SettingChanged): void {
predictContract.save()
const predictSettingsUpdate = new PredictSettingUpdate(
event.address.toHexString() +
'- ' +
event.transaction.hash.toHexString() +
'-' +
event.logIndex.toHexString()
'- ' +
event.transaction.hash.toHexString() +
'-' +
event.logIndex.toHexString()
)
predictSettingsUpdate.block = event.block.number.toI32()
predictSettingsUpdate.txId = event.transaction.hash.toHexString()