Skip to content

Commit

Permalink
Fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse committed Apr 15, 2024
1 parent bcf7548 commit df40e50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/rfq/relayer/service/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ func (r *Relayer) handleBridgeRequestedLog(parentCtx context.Context, req *fastb
return nil
}

if err != nil {
if err != nil || originDecimals == nil || destDecimals == nil {

Check warning on line 68 in services/rfq/relayer/service/handlers.go

View check run for this annotation

Codecov / codecov/patch

services/rfq/relayer/service/handlers.go#L68

Added line #L68 was not covered by tests
return fmt.Errorf("could not get decimals: %w", err)
}

err = r.db.StoreQuoteRequest(ctx, reldb.QuoteRequest{
BlockNumber: req.Raw.BlockNumber,
RawRequest: req.Request,
OriginTokenDecimals: originDecimals,
DestTokenDecimals: destDecimals,
OriginTokenDecimals: *originDecimals,
DestTokenDecimals: *destDecimals,

Check warning on line 76 in services/rfq/relayer/service/handlers.go

View check run for this annotation

Codecov / codecov/patch

services/rfq/relayer/service/handlers.go#L75-L76

Added lines #L75 - L76 were not covered by tests
TransactionID: req.TransactionId,
Sender: req.Sender,
Transaction: bridgeTx,
Expand Down

0 comments on commit df40e50

Please sign in to comment.