Skip to content

Commit

Permalink
Fixed error mismatching
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrylR committed Dec 30, 2022
1 parent 6c392b5 commit 10e782d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/helpers/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func SendRequest(body io.Reader, endpoint string) (*resources.EvmTransaction, in
return nil, 0, errors.Wrap(err, "failed to send request, endpoint: "+endpoint)
}
if res.StatusCode == 400 {
return nil, res.StatusCode, errors.New("invalid parameters")
return nil, res.StatusCode, nil
}

tx, err := ParseEvmTransactionResponse(res)
Expand Down

0 comments on commit 10e782d

Please sign in to comment.