From 2904eaa2799a4c48521e994fe2fe770f7e8d6044 Mon Sep 17 00:00:00 2001 From: Krishna Upadhyaya Date: Wed, 4 May 2022 13:15:41 +0530 Subject: [PATCH] Fix state sync rawData position --- root/src/mappings/state-sync.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/src/mappings/state-sync.ts b/root/src/mappings/state-sync.ts index 949304f..7425473 100644 --- a/root/src/mappings/state-sync.ts +++ b/root/src/mappings/state-sync.ts @@ -15,6 +15,7 @@ export function handleStateSynced(event: StateSynced): void { entity.timestamp = event.block.timestamp entity.blockNumber = event.block.number entity.logIndex = event.logIndex.toString() + entity.rawData = event.params.data.toHexString() // Attempting to create an instance of `Decoder` smart contract // to be used for decoding valid state sync data @@ -54,7 +55,6 @@ export function handleStateSynced(event: StateSynced): void { entity.depositorOrRootToken = decoded.value1.toHex() entity.depositedTokenOrChildToken = decoded.value2.toHex() entity.data = decoded.value3.toHexString() - entity.rawData = event.params.data.toHexString() // save entity entity.save()