From d34ae45c084990820e852a9222ff05cf81742784 Mon Sep 17 00:00:00 2001 From: aureliusbtc <82057759+aureliusbtc@users.noreply.github.com> Date: Sat, 4 May 2024 20:16:45 -0400 Subject: [PATCH] lint, add err around clientSuggestGasPrice --- services/rfq/relayer/pricer/fee_pricer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/rfq/relayer/pricer/fee_pricer.go b/services/rfq/relayer/pricer/fee_pricer.go index 1eeb6eff25..8faf91599f 100644 --- a/services/rfq/relayer/pricer/fee_pricer.go +++ b/services/rfq/relayer/pricer/fee_pricer.go @@ -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) }