invoice/test: move payment address optional into test using it

No need for a global when this is only used once.
This commit is contained in:
Carla Kirk-Cohen committed 2023-07-24 10:54:00 -04:00
1 parent ceff879f37
commit 40f695743a
2 files changed
+19 -19

No files matched your search

-16
View File
@@ -149,22 +149,6 @@ var (
},
CreationDate: testInvoiceCreationDate,
}
testPayAddrOptionalInvoice = &invpkg.Invoice{
Terms: invpkg.ContractTerm{
PaymentPreimage: &testInvoicePreimage,
Value: testInvoiceAmt,
Expiry: time.Hour,
Features: lnwire.NewFeatureVector(
lnwire.NewRawFeatureVector(
lnwire.TLVOnionPayloadOptional,
lnwire.PaymentAddrOptional,
),
lnwire.Features,
),
},
CreationDate: testInvoiceCreationDate,
}
)
func newTestChannelDB(t *testing.T, clock clock.Clock) (*channeldb.DB, error) {