From 12df91b5849805f522db84c19ac6880bed6d52d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=ADghearn=C3=A1n=20Carroll?= Date: Tue, 5 Apr 2022 10:50:30 +0100 Subject: [PATCH] fix lint --- service/envelopes.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/service/envelopes.go b/service/envelopes.go index 509c1fe6..c5c1a1ce 100644 --- a/service/envelopes.go +++ b/service/envelopes.go @@ -115,17 +115,11 @@ func (e *envelopes) Envelope(ctx context.Context, args payd.EnvelopeArgs, req dp return nil, errors.Wrapf(err, "failed to sign tx %s", tx.String()) } - spvEnvelope := &spv.Envelope{ - RawTx: tx.String(), - TxID: tx.TxID(), - } - // Create the spv envelope for the tx. - s, err := e.spvc.CreateEnvelope(ctx, tx) + spvEnvelope, err := e.spvc.CreateEnvelope(ctx, tx) if err != nil { return nil, errors.Wrapf(err, "failed to create spv envelope for tx %s", tx.String()) } - spvEnvelope = s txCreate := payd.TransactionCreate{ TxID: tx.TxID(),