Skip to content

Commit

Permalink
fix redundant declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
parodime committed Nov 6, 2024
1 parent 6808eb0 commit 1908780
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions services/rfq/relayer/quoter/quoter.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,7 @@ func (m *Manager) generateActiveRFQ(ctx context.Context, msg *model.ActiveRFQMes
}
span.SetAttributes(attribute.String("request_id", rfqRequest.RequestID))

depositAmount := new(big.Int)
depositAmount, ok := depositAmount.SetString(rfqRequest.Data.OriginAmount, 10) // base 10 for decimal
depositAmount, ok := new(big.Int).SetString(rfqRequest.Data.OriginAmount, 10)
if !ok {
return nil, fmt.Errorf("invalid rfq request deposit amount: %s", rfqRequest.Data.OriginAmount)
}

Check warning on line 370 in services/rfq/relayer/quoter/quoter.go

View check run for this annotation

Codecov / codecov/patch

services/rfq/relayer/quoter/quoter.go#L368-L370

Added lines #L368 - L370 were not covered by tests
Expand Down

0 comments on commit 1908780

Please sign in to comment.