Skip to content

Commit

Permalink
lint, add err around clientSuggestGasPrice
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliusbtc committed May 5, 2024
1 parent 1108475 commit d34ae45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/rfq/relayer/pricer/fee_pricer.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ func (f *feePricer) GetGasPrice(ctx context.Context, chainID uint32) (*big.Int,
return nil, err
}
gasPrice, err = client.SuggestGasPrice(ctx)
if err != nil {
return nil, fmt.Errorf("failed to suggest gas price on chain %d: %w", chainID, err)
}
if gasPrice == nil {
return nil, fmt.Errorf("gas price is nil on chain %d", chainID)
}
Expand Down

0 comments on commit d34ae45

Please sign in to comment.