Skip to content

Commit

Permalink
fix: 🚨 errcheck
Browse files Browse the repository at this point in the history
Signed-off-by: thanhpp <[email protected]>
  • Loading branch information
thanhpp committed Jan 3, 2024
1 parent 53f966c commit 9e07425
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/mev/send_bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ func SendBundle(
return SendBundleResponse{}, fmt.Errorf("new http request error: %w", err)
}
if opts.flashbotSignKey != nil {
signFlashbotRequest(opts.flashbotSignKey, httpReq, reqBody)
if err := signFlashbotRequest(opts.flashbotSignKey, httpReq, reqBody); err != nil {
return SendBundleResponse{}, fmt.Errorf("sign flashbot request error: %w", err)
}
}
httpReq.Header.Add("Content-Type", "application/json")
httpReq.Header.Add("Accept", "application/json")
Expand Down

0 comments on commit 9e07425

Please sign in to comment.