invoices/test: remove duplicate test invoice amount global
We have testInvoiceAmt and testInvoiceAmount with the same value.
This commit is contained in:
2 files changed
+9
-11
No files matched your search
@@ -132,12 +132,10 @@ var (
|
||||
)
|
||||
|
||||
var (
|
||||
testInvoiceAmt = lnwire.MilliSatoshi(100000)
|
||||
|
||||
testPayAddrReqInvoice = &invpkg.Invoice{
|
||||
Terms: invpkg.ContractTerm{
|
||||
PaymentPreimage: &testInvoicePreimage,
|
||||
Value: testInvoiceAmt,
|
||||
Value: testInvoiceAmount,
|
||||
Expiry: time.Hour,
|
||||
Features: lnwire.NewFeatureVector(
|
||||
lnwire.NewRawFeatureVector(
|
||||
@@ -249,7 +247,7 @@ func getCircuitKey(htlcID uint64) invpkg.CircuitKey {
|
||||
func newInvoice(t *testing.T, hodl bool) *invpkg.Invoice {
|
||||
invoice := &invpkg.Invoice{
|
||||
Terms: invpkg.ContractTerm{
|
||||
Value: testInvoiceAmt,
|
||||
Value: testInvoiceAmount,
|
||||
Expiry: time.Hour,
|
||||
Features: testFeatures.Clone(),
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user