Skip to content

Commit 3809edf

Browse files
committed
fix max type for postgresql bigInt
1 parent 01df93e commit 3809edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/pgstorage/pgstorage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ func (p *PostgresStorage) AddRemoveL2GER(ctx context.Context, globalExitRoot eth
847847
CurrentDepositID, _, err := p.GetDepositCountByGER(ctx, globalExitRoot.GlobalExitRoot, globalExitRoot.NetworkID, false, dbTx)
848848
if errors.Is(err, gerror.ErrStorageNotFound) {
849849
log.Warnf("No deposit found for this GER: %s in L1, NetworkID: %d", globalExitRoot.GlobalExitRoot.String(), globalExitRoot.NetworkID)
850-
CurrentDepositID = math.MaxUint64
850+
CurrentDepositID = math.MaxInt64
851851
} else if err != nil {
852852
return err
853853
}

0 commit comments

Comments
 (0)