Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouop0 committed Jun 21, 2024
1 parent cf0ff22 commit cdaa2df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions internal/handler/syncEvent.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ func HandleRollbackBlock(ctx *svc.ServiceContext, block schema.SyncBlock) error
}

func initMonitoredContract(s *svc.ServiceContext) {
//var disputeGames []schema.DisputeGame
//err := s.DB.Where("status=?", uint8(0)).Find(disputeGames).Error
var disputeGames []schema.DisputeGame
err := s.DB.Where("status = ? ", 0).Order("block_number").Find(&disputeGames).Error
if err != nil && err != gorm.ErrRecordNotFound {
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"context"

"github.com/gin-gonic/gin"
"github.com/optimism-java/dispute-explorer/internal/api"
"github.com/optimism-java/dispute-explorer/internal/handler"
Expand Down

0 comments on commit cdaa2df

Please sign in to comment.