Skip to content

Commit

Permalink
new: dev: pos-493 solve conflicts / 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcello Ardizzone committed Jun 21, 2022
1 parent d84c86d commit 5029400
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bridge/setu/listener/rootchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ func (rl *RootChainListener) queryAndBroadcastEvents(rootchainContext *RootChain
topic := vLog.Topics[0].Bytes()
for _, abiObject := range rl.abis {
selectedEvent := helper.EventByID(abiObject, topic)
if selectedEvent == nil {
continue
}
logBytes, _ := json.Marshal(vLog)
if selectedEvent != nil {
rl.Logger.Debug("ReceivedEvent", "eventname", selectedEvent.Name)
Expand Down Expand Up @@ -276,10 +279,6 @@ func (rl *RootChainListener) queryAndBroadcastEvents(rootchainContext *RootChain
rl.SendTaskWithDelay("sendUnjailToHeimdall", selectedEvent.Name, logBytes, delay, event)
}
}
if selectedEvent == nil {
continue
}

rl.handleLog(vLog, selectedEvent, pubkeyBytes)
}
}
Expand Down

0 comments on commit 5029400

Please sign in to comment.