diff --git a/internal/tss/services/mocks.go b/internal/tss/services/mocks.go index f628c1d..3edcb26 100644 --- a/internal/tss/services/mocks.go +++ b/internal/tss/services/mocks.go @@ -2,8 +2,6 @@ package services import ( "context" - "io" - "net/http" "github.com/stellar/go/txnbuild" "github.com/stellar/wallet-backend/internal/tss" @@ -11,15 +9,6 @@ import ( "github.com/stretchr/testify/mock" ) -type MockHTTPClient struct { - mock.Mock -} - -func (s *MockHTTPClient) Post(url, contentType string, body io.Reader) (resp *http.Response, err error) { - args := s.Called(url, contentType, body) - return args.Get(0).(*http.Response), args.Error(1) -} - type TransactionServiceMock struct { mock.Mock } diff --git a/internal/tss/types.go b/internal/tss/types.go index 38c739e..6d2e828 100644 --- a/internal/tss/types.go +++ b/internal/tss/types.go @@ -22,6 +22,7 @@ type RPCGetIngestTxResponse struct { CreatedAt int64 } +//nolint:unused func ParseToRPCGetIngestTxResponse(result entities.RPCGetTransactionResult, err error) (RPCGetIngestTxResponse, error) { if err != nil { return RPCGetIngestTxResponse{Status: entities.ErrorStatus}, err