Skip to content

Commit

Permalink
Listening for protocol state logs instead data market
Browse files Browse the repository at this point in the history
  • Loading branch information
Sulejman committed Aug 20, 2024
1 parent 2400f53 commit cf72c13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/helpers/prost/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func ProcessEvents(block *types.Block, contractABI abi.ABI) {
hash := block.Hash()
filterQuery := ethereum.FilterQuery{
BlockHash: &hash,
Addresses: []common.Address{common.HexToAddress(config.SettingsObj.DataMarketAddress)},
Addresses: []common.Address{common.HexToAddress(config.SettingsObj.ContractAddress)},
}

operation := func() error {
Expand All @@ -40,6 +40,7 @@ func ProcessEvents(block *types.Block, contractABI abi.ABI) {
clients.SendFailureNotification("ProcessEvents", fmt.Sprintf("Error fetching logs: %s", err.Error()), time.Now().String(), "High")
return
}

for _, vLog := range logs {
switch vLog.Topics[0].Hex() {
case contractABI.Events["EpochReleased"].ID.Hex():
Expand Down

0 comments on commit cf72c13

Please sign in to comment.