synapsecns/sanguine

View on GitHub
services/scribe/db/datastore/sql/base/lastconfirmedblock.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Store.StoreLastConfirmedBlock has 5 return statements (exceeds 4 allowed).
Open

func (s Store) StoreLastConfirmedBlock(ctx context.Context, chainID uint32, blockNumber uint64) error {
    entry := LastConfirmedBlockInfo{}
    dbTx := s.DB().WithContext(ctx).
        Model(&LastConfirmedBlockInfo{}).
        Where(&LastConfirmedBlockInfo{
Severity: Major
Found in services/scribe/db/datastore/sql/base/lastconfirmedblock.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status