Skip to content

Commit

Permalink
Fix state sync rawData position
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKrishna authored and QEDK committed May 4, 2022
1 parent 1de6784 commit 2904eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/src/mappings/state-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 2904eaa

Please sign in to comment.