Removed self-reference infinite loop for LnTaggedFields.apply (#641)

This commit is contained in:
Nadav Kohen 2019-07-17 12:34:33 -05:00 committed by Chris Stewart
parent 7f0b11c019
commit 0013aded27

View File

@ -77,17 +77,9 @@ object LnTaggedFields {
extends LnTaggedFields
/**
* According to BOLT11 these are the required fields in a LnInvoice
* You need to provide a payment hash and either a description,
* or the hash of the description
* According to BOLT11 the required fields in a LnInvoice are a payment hash
* and either a description, or the hash of the description.
*/
def apply(
paymentHashTag: PaymentHashTag,
descriptionOrHash: Either[LnTag.DescriptionTag, LnTag.DescriptionHashTag]): LnTaggedFields = {
LnTaggedFields.apply(paymentHashTag, descriptionOrHash)
}
def apply(
paymentHash: LnTag.PaymentHashTag,
descriptionOrHash: Either[LnTag.DescriptionTag, LnTag.DescriptionHashTag],