Skip to content

Commit

Permalink
send response with error
Browse files Browse the repository at this point in the history
  • Loading branch information
CreatureDev committed Feb 19, 2024
1 parent 7f6fe94 commit 57b9748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ func (t *transactionImpl) SubmitMultisigned(req *transactions.SubmitMultisignedR
func (t *transactionImpl) Submit(req *transactions.SubmitRequest) (*transactions.SubmitResponse, XRPLResponse, error) {
res, err := t.client.SendRequest(req)
if err != nil {
return nil, nil, err
return nil, res, err
}
var sr transactions.SubmitResponse
err = res.GetResult(&sr)
if err != nil {
return nil, nil, err
return nil, res, err
}
return &sr, res, nil
}
Expand Down

0 comments on commit 57b9748

Please sign in to comment.