Skip to content

Commit

Permalink
fix nil pointer when there's no receipt (#12334)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel authored Mar 7, 2024
1 parent b2cca3d commit 542cd04
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions integration-tests/actions/seth/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit 542cd04

Please sign in to comment.