mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-19 18:02:54 +01:00
Removed self-reference infinite loop for LnTaggedFields.apply (#641)
This commit is contained in:
parent
7f0b11c019
commit
0013aded27
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user