Skip to content

Commit

Permalink
fix: check error before return
Browse files Browse the repository at this point in the history
Signed-off-by: SamMayWork <[email protected]>
  • Loading branch information
SamMayWork committed Sep 19, 2024
1 parent dc97c73 commit 21a2d9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/contracts/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,12 @@ func NewContractManager(ctx context.Context, ns string, di database.Plugin, bi b
// cause recreation of all the listeners (noting that listeners that were specified to start
// from latest, will start from the new latest rather than replaying from the block they
// started from before they were deleted).
return cm, cm.verifyListeners(ctx)
err = cm.verifyListeners(ctx)
if err != nil {
return nil, err
}

return cm, nil
}

func (cm *contractManager) Name() string {
Expand Down

0 comments on commit 21a2d9c

Please sign in to comment.