diff --git a/go.mod b/go.mod index a7e936e..a84fe44 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.23.2 require ( github.com/alitto/pond v1.9.2 github.com/aws/aws-sdk-go v1.55.5 - github.com/getsentry/sentry-go v0.29.0 + github.com/getsentry/sentry-go v0.29.1 github.com/go-chi/chi v4.1.2+incompatible github.com/go-playground/validator/v10 v10.22.1 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index 09edff9..54cb108 100644 --- a/go.sum +++ b/go.sum @@ -33,8 +33,8 @@ github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uq github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk= github.com/gavv/monotime v0.0.0-20161010190848-47d58efa6955 h1:gmtGRvSexPU4B1T/yYo0sLOKzER1YT+b4kPxPpm0Ty4= github.com/gavv/monotime v0.0.0-20161010190848-47d58efa6955/go.mod h1:vmp8DIyckQMXOPl0AQVHt+7n5h7Gb7hS6CUydiV8QeA= -github.com/getsentry/sentry-go v0.29.0 h1:YtWluuCFg9OfcqnaujpY918N/AhCCwarIDWOYSBAjCA= -github.com/getsentry/sentry-go v0.29.0/go.mod h1:jhPesDAL0Q0W2+2YEuVOvdWmVtdsr1+jtBrlDEVWwLY= +github.com/getsentry/sentry-go v0.29.1 h1:DyZuChN8Hz3ARxGVV8ePaNXh1dQ7d76AiB117xcREwA= +github.com/getsentry/sentry-go v0.29.1/go.mod h1:x3AtIzN01d6SiWkderzaH28Tm0lgkafpJ5Bm3li39O0= github.com/go-chi/chi v4.1.2+incompatible h1:fGFk2Gmi/YKXk0OmGfBh0WgmN3XB8lVnEyNz34tQRec= github.com/go-chi/chi v4.1.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ= github.com/go-errors/errors v1.5.1 h1:ZwEMSLRCapFLflTpT7NKaAc7ukJ8ZPEjzlxt8rPN8bk= diff --git a/internal/tss/router/router_test.go b/internal/tss/router/router_test.go index 9156c01..8060770 100644 --- a/internal/tss/router/router_test.go +++ b/internal/tss/router/router_test.go @@ -98,6 +98,7 @@ func TestRouter(t *testing.T) { }) t.Run("status_error_routes_to_webhook_channel", func(t *testing.T) { for _, code := range tss.FinalCodes { + payload := tss.Payload{ RpcSubmitTxResponse: tss.RPCSendTxResponse{ Status: tss.RPCTXStatus{ diff --git a/internal/tss/types.go b/internal/tss/types.go index 5071ec8..7db15ce 100644 --- a/internal/tss/types.go +++ b/internal/tss/types.go @@ -42,6 +42,7 @@ func ParseToRPCGetIngestTxResponse(result entities.RPCGetTransactionResult, err } } getIngestTxResponse.Code, err = TransactionResultXDRToCode(result.ResultXDR) + if err != nil { return getIngestTxResponse, fmt.Errorf("parse error result xdr string: %w", err) } diff --git a/internal/tss/utils/helpers.go b/internal/tss/utils/helpers.go index 94a7fad..407d46b 100644 --- a/internal/tss/utils/helpers.go +++ b/internal/tss/utils/helpers.go @@ -19,6 +19,7 @@ func PayloadTOTSSResponse(payload tss.Payload) tss.TSSResponse { response.EnvelopeXDR = payload.RpcGetIngestTxResponse.EnvelopeXDR response.ResultXDR = payload.RpcGetIngestTxResponse.ResultXDR response.CreatedAt = payload.RpcGetIngestTxResponse.CreatedAt + } return response }