@@ -1302,6 +1302,31 @@ func testCustomChannelsGroupTranchesForceClose(ctx context.Context,
13021302 }
13031303 logBalanceGroup (t .t , nodes , groupIDs , "after keysend Erin->Fabia" )
13041304
1305+ // We also assert that in a grouped channel with multiple grouped asset
1306+ // UTXOs we get a proper error if we try to do payments or create
1307+ // invoices while using a single asset ID.
1308+ sendAssetKeySendPayment (
1309+ t .t , erin , fabia , keySendAmount , assetID1 , fn .None [int64 ](),
1310+ withPayErrSubStr (
1311+ "make sure to use group key for grouped asset channels" ,
1312+ ),
1313+ )
1314+ createAssetInvoice (
1315+ t .t , charlie , dave , 100 , assetID1 , withInvoiceErrSubStr (
1316+ "make sure to use group key for grouped asset channels" ,
1317+ ),
1318+ )
1319+ invoiceResp := createAssetInvoice (
1320+ t .t , charlie , dave , keySendAmount , nil ,
1321+ withInvGroupKey (groupKey ),
1322+ )
1323+ payInvoiceWithAssets (
1324+ t .t , charlie , dave , invoiceResp .PaymentRequest , assetID1 ,
1325+ withPayErrSubStr (
1326+ "make sure to use group key for grouped asset channels" ,
1327+ ),
1328+ )
1329+
13051330 // ------------
13061331 // Test case 3: Co-op close the channel between Charlie and Dave.
13071332 // ------------
0 commit comments