@@ -59,7 +59,7 @@ func (a *AcceptChannel) RandTestMessage(t *rapid.T) Message {
5959 if includeLocalNonce {
6060 nonce := RandMusig2Nonce (t )
6161 localNonce = tlv .SomeRecordT (
62- tlv.NewRecordT [NonceRecordTypeT , Musig2Nonce ](nonce ),
62+ tlv.NewRecordT [NonceRecordTypeT ](nonce ),
6363 )
6464 }
6565
@@ -242,7 +242,7 @@ func (c *ChannelAnnouncement2) RandTestMessage(t *rapid.T) Message {
242242 var bitcoinKey1 [33 ]byte
243243 copy (bitcoinKey1 [:], RandPubKey (t ).SerializeCompressed ())
244244 msg .BitcoinKey1 = tlv .SomeRecordT (
245- tlv.NewPrimitiveRecord [tlv.TlvType12 , [ 33 ] byte ](
245+ tlv.NewPrimitiveRecord [tlv.TlvType12 ](
246246 bitcoinKey1 ,
247247 ),
248248 )
@@ -252,7 +252,7 @@ func (c *ChannelAnnouncement2) RandTestMessage(t *rapid.T) Message {
252252 var bitcoinKey2 [33 ]byte
253253 copy (bitcoinKey2 [:], RandPubKey (t ).SerializeCompressed ())
254254 msg .BitcoinKey2 = tlv .SomeRecordT (
255- tlv.NewPrimitiveRecord [tlv.TlvType14 , [ 33 ] byte ](
255+ tlv.NewPrimitiveRecord [tlv.TlvType14 ](
256256 bitcoinKey2 ,
257257 ),
258258 )
@@ -263,7 +263,7 @@ func (c *ChannelAnnouncement2) RandTestMessage(t *rapid.T) Message {
263263 var merkleRootHash [32 ]byte
264264 copy (merkleRootHash [:], hash [:])
265265 msg .MerkleRootHash = tlv .SomeRecordT (
266- tlv.NewPrimitiveRecord [tlv.TlvType16 , [ 32 ] byte ](
266+ tlv.NewPrimitiveRecord [tlv.TlvType16 ](
267267 merkleRootHash ,
268268 ),
269269 )
@@ -309,14 +309,14 @@ func (c *ChannelReady) RandTestMessage(t *rapid.T) Message {
309309 if includeAnnouncementNodeNonce {
310310 nonce := RandMusig2Nonce (t )
311311 msg .AnnouncementNodeNonce = tlv .SomeRecordT (
312- tlv.NewRecordT [tlv.TlvType0 , Musig2Nonce ](nonce ),
312+ tlv.NewRecordT [tlv.TlvType0 ](nonce ),
313313 )
314314 }
315315
316316 if includeAnnouncementBitcoinNonce {
317317 nonce := RandMusig2Nonce (t )
318318 msg .AnnouncementBitcoinNonce = tlv .SomeRecordT (
319- tlv.NewRecordT [tlv.TlvType2 , Musig2Nonce ](nonce ),
319+ tlv.NewRecordT [tlv.TlvType2 ](nonce ),
320320 )
321321 }
322322
@@ -431,7 +431,7 @@ func (a *ChannelUpdate1) RandTestMessage(t *rapid.T) Message {
431431 FeeRate : inFeeProp ,
432432 }
433433 inboundFee = tlv .SomeRecordT (
434- tlv.NewRecordT [tlv.TlvType55555 , Fee ](fee ),
434+ tlv.NewRecordT [tlv.TlvType55555 ](fee ),
435435 )
436436
437437 var b bytes.Buffer
@@ -599,21 +599,21 @@ func (c *ClosingComplete) RandTestMessage(t *rapid.T) Message {
599599 if includeCloserNoClosee {
600600 sig := RandSignature (t )
601601 msg .CloserNoClosee = tlv .SomeRecordT (
602- tlv.NewRecordT [tlv.TlvType1 , Sig ](sig ),
602+ tlv.NewRecordT [tlv.TlvType1 ](sig ),
603603 )
604604 }
605605
606606 if includeNoCloserClosee {
607607 sig := RandSignature (t )
608608 msg .NoCloserClosee = tlv .SomeRecordT (
609- tlv.NewRecordT [tlv.TlvType2 , Sig ](sig ),
609+ tlv.NewRecordT [tlv.TlvType2 ](sig ),
610610 )
611611 }
612612
613613 if includeCloserAndClosee {
614614 sig := RandSignature (t )
615615 msg .CloserAndClosee = tlv .SomeRecordT (
616- tlv.NewRecordT [tlv.TlvType3 , Sig ](sig ),
616+ tlv.NewRecordT [tlv.TlvType3 ](sig ),
617617 )
618618 }
619619
@@ -659,21 +659,21 @@ func (c *ClosingSig) RandTestMessage(t *rapid.T) Message {
659659 if includeCloserNoClosee {
660660 sig := RandSignature (t )
661661 msg .CloserNoClosee = tlv .SomeRecordT (
662- tlv.NewRecordT [tlv.TlvType1 , Sig ](sig ),
662+ tlv.NewRecordT [tlv.TlvType1 ](sig ),
663663 )
664664 }
665665
666666 if includeNoCloserClosee {
667667 sig := RandSignature (t )
668668 msg .NoCloserClosee = tlv .SomeRecordT (
669- tlv.NewRecordT [tlv.TlvType2 , Sig ](sig ),
669+ tlv.NewRecordT [tlv.TlvType2 ](sig ),
670670 )
671671 }
672672
673673 if includeCloserAndClosee {
674674 sig := RandSignature (t )
675675 msg .CloserAndClosee = tlv .SomeRecordT (
676- tlv.NewRecordT [tlv.TlvType3 , Sig ](sig ),
676+ tlv.NewRecordT [tlv.TlvType3 ](sig ),
677677 )
678678 }
679679
@@ -1222,7 +1222,7 @@ func (o *OpenChannel) RandTestMessage(t *rapid.T) Message {
12221222 if includeLocalNonce {
12231223 nonce := RandMusig2Nonce (t )
12241224 localNonce = tlv .SomeRecordT (
1225- tlv.NewRecordT [NonceRecordTypeT , Musig2Nonce ](nonce ),
1225+ tlv.NewRecordT [NonceRecordTypeT ](nonce ),
12261226 )
12271227 }
12281228
@@ -1524,7 +1524,7 @@ func (c *RevokeAndAck) RandTestMessage(t *rapid.T) Message {
15241524 copy (nonce [:], nonceBytes )
15251525
15261526 msg .LocalNonce = tlv .SomeRecordT (
1527- tlv.NewRecordT [NonceRecordTypeT , Musig2Nonce ](nonce ),
1527+ tlv.NewRecordT [NonceRecordTypeT ](nonce ),
15281528 )
15291529 }
15301530
0 commit comments