From 57b97484523d36aef4493175928df86ddaed2f6e Mon Sep 17 00:00:00 2001 From: PR Date: Mon, 19 Feb 2024 14:54:04 -0800 Subject: [PATCH] send response with error --- client/transactions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/transactions.go b/client/transactions.go index 964e535a..3e63ef98 100644 --- a/client/transactions.go +++ b/client/transactions.go @@ -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 }