Skip to content

Commit

Permalink
Merge pull request #2 from Swapica/develop
Browse files Browse the repository at this point in the history
Fixed error mismatching
  • Loading branch information
slandymani authored Dec 30, 2022
2 parents ac31d6b + 10e782d commit 67ac120
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 67ac120

Please sign in to comment.