From e5f68131311e2e1818cf0eba914dd8c4b11ba34e Mon Sep 17 00:00:00 2001 From: Bartek Tofel Date: Thu, 7 Mar 2024 16:36:52 +0100 Subject: [PATCH] fix nil pointer when there's no receipt (#12334) --- integration-tests/actions/seth/actions.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/integration-tests/actions/seth/actions.go b/integration-tests/actions/seth/actions.go index ac536ac2f97..ae5016852fe 100644 --- a/integration-tests/actions/seth/actions.go +++ b/integration-tests/actions/seth/actions.go @@ -71,10 +71,16 @@ func FundChainlinkNodes( }) if err != nil { fundingErrors = append(fundingErrors, err) - logger.Warn(). + + txHash := "(none)" + if receipt != nil { + txHash = receipt.TxHash.String() + } + + logger.Err(err). Str("From", fromAddress.Hex()). Str("To", toAddress). - Str("TxHash", receipt.TxHash.String()). + Str("TxHash", txHash). Msg("Failed to fund Chainlink node") }