Skip to content

Commit

Permalink
Fix reveal event issues.
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Kumar Mishra <ashish10677@gmail.com>
  • Loading branch information
ashish10677 committed Jun 30, 2022
1 parent 3dd4957 commit f9f80da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/reveal.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (*UtilsStruct) IndexRevealEventsOfCurrentEpoch(client *ethclient.Client, bl
continue
}
if epoch == data[0].(uint32) {
treeValues := data[3].([]struct {
treeValues := data[2].([]struct {
LeafId uint16 `json:"leafId"`
Value *big.Int `json:"value"`
})
Expand All @@ -140,7 +140,7 @@ func (*UtilsStruct) IndexRevealEventsOfCurrentEpoch(client *ethclient.Client, bl
}
consolidatedRevealedData := types.RevealedStruct{
RevealedValues: revealedValues,
Influence: data[2].(*big.Int),
Influence: data[1].(*big.Int),
}
revealedData = append(revealedData, consolidatedRevealedData)
}
Expand Down

0 comments on commit f9f80da

Please sign in to comment.