@@ -179,7 +179,8 @@ describe("TxBuilder Script Handling", () => {
179179 const signBuilder = await builder . build ( {
180180 changeAddress : CoreAddress . fromBech32 ( CHANGE_ADDRESS ) ,
181181 availableUtxos : [ fundingUtxo ] ,
182- protocolParameters : PROTOCOL_PARAMS
182+ protocolParameters : PROTOCOL_PARAMS ,
183+ passAdditionalUtxos : true // Required for synthetic UTxOs not on chain
183184 } )
184185
185186 const tx = await signBuilder . toTransaction ( )
@@ -388,7 +389,8 @@ describe("TxBuilder Script Handling", () => {
388389 const signBuilder = await builder . build ( {
389390 changeAddress : CoreAddress . fromBech32 ( CHANGE_ADDRESS ) ,
390391 availableUtxos : [ multiAssetUtxo ] ,
391- protocolParameters : PROTOCOL_PARAMS
392+ protocolParameters : PROTOCOL_PARAMS ,
393+ passAdditionalUtxos : true // Required for synthetic UTxOs not on chain
392394 } )
393395
394396 const tx = await signBuilder . toTransaction ( )
@@ -600,7 +602,8 @@ describe("TxBuilder Script Handling", () => {
600602 const signBuilder = await builder . build ( {
601603 changeAddress : CoreAddress . fromBech32 ( CHANGE_ADDRESS ) ,
602604 availableUtxos : [ utxoWithRefScript , utxoWithoutRefScript ] ,
603- protocolParameters : PROTOCOL_PARAMS
605+ protocolParameters : PROTOCOL_PARAMS ,
606+ passAdditionalUtxos : true // Required for synthetic UTxOs not on chain
604607 } )
605608
606609 const tx = await signBuilder . toTransaction ( )
@@ -674,7 +677,8 @@ describe("TxBuilder Script Handling", () => {
674677 const signBuilder = await builder . build ( {
675678 changeAddress : CoreAddress . fromBech32 ( CHANGE_ADDRESS ) ,
676679 availableUtxos : [ tightFundingUtxo , collateralUtxo ] ,
677- protocolParameters : PROTOCOL_PARAMS
680+ protocolParameters : PROTOCOL_PARAMS ,
681+ passAdditionalUtxos : true // Required for synthetic UTxOs not on chain
678682 } )
679683
680684 const tx = await signBuilder . toTransaction ( )
@@ -755,7 +759,8 @@ describe("TxBuilder Script Handling", () => {
755759 const signBuilder = await builder . build ( {
756760 changeAddress : CoreAddress . fromBech32 ( CHANGE_ADDRESS ) ,
757761 availableUtxos : [ collateralUtxo ] ,
758- protocolParameters : PROTOCOL_PARAMS
762+ protocolParameters : PROTOCOL_PARAMS ,
763+ passAdditionalUtxos : true // Required for synthetic UTxOs not on chain
759764 } )
760765
761766 const tx = await signBuilder . toTransaction ( )
@@ -816,7 +821,8 @@ describe("TxBuilder Script Handling", () => {
816821 const signBuilder = await builder . build ( {
817822 changeAddress : CoreAddress . fromBech32 ( CHANGE_ADDRESS ) ,
818823 availableUtxos : [ ] ,
819- protocolParameters : PROTOCOL_PARAMS
824+ protocolParameters : PROTOCOL_PARAMS ,
825+ passAdditionalUtxos : true // Required for synthetic UTxOs not on chain
820826 } )
821827
822828 const tx = await signBuilder . toTransaction ( )
@@ -863,7 +869,8 @@ describe("TxBuilder Script Handling", () => {
863869 const signBuilder = await builder . build ( {
864870 changeAddress : CoreAddress . fromBech32 ( CHANGE_ADDRESS ) ,
865871 availableUtxos : [ ] ,
866- protocolParameters : PROTOCOL_PARAMS
872+ protocolParameters : PROTOCOL_PARAMS ,
873+ passAdditionalUtxos : true // Required for synthetic UTxOs not on chain
867874 } )
868875
869876 const tx = await signBuilder . toTransaction ( )
@@ -908,7 +915,8 @@ describe("TxBuilder Script Handling", () => {
908915 const signBuilder = await builder . build ( {
909916 changeAddress : CoreAddress . fromBech32 ( CHANGE_ADDRESS ) ,
910917 availableUtxos : [ ] ,
911- protocolParameters : PROTOCOL_PARAMS
918+ protocolParameters : PROTOCOL_PARAMS ,
919+ passAdditionalUtxos : true // Required for synthetic UTxOs not on chain
912920 } )
913921
914922 const tx = await signBuilder . toTransaction ( )
@@ -998,7 +1006,8 @@ describe("TxBuilder Script Handling", () => {
9981006 const signBuilder = await builder . build ( {
9991007 changeAddress : CoreAddress . fromBech32 ( CHANGE_ADDRESS ) ,
10001008 availableUtxos : [ ] ,
1001- protocolParameters : PROTOCOL_PARAMS
1009+ protocolParameters : PROTOCOL_PARAMS ,
1010+ passAdditionalUtxos : true // Required for synthetic UTxOs not on chain
10021011 } )
10031012
10041013 const tx = await signBuilder . toTransaction ( )
@@ -1040,7 +1049,8 @@ describe("TxBuilder Script Handling", () => {
10401049 const signBuilder = await builder . build ( {
10411050 changeAddress : CoreAddress . fromBech32 ( CHANGE_ADDRESS ) ,
10421051 availableUtxos : [ ] ,
1043- protocolParameters : PROTOCOL_PARAMS
1052+ protocolParameters : PROTOCOL_PARAMS ,
1053+ passAdditionalUtxos : true // Required for synthetic UTxOs not on chain
10441054 } )
10451055
10461056 const tx = await signBuilder . toTransaction ( )
@@ -1120,7 +1130,8 @@ describe("TxBuilder Script Handling", () => {
11201130 const signBuilder = await builder . build ( {
11211131 changeAddress : CoreAddress . fromBech32 ( CHANGE_ADDRESS ) ,
11221132 availableUtxos : [ collateralUtxo1 , collateralUtxo2 , collateralUtxo3 , collateralUtxo4 ] ,
1123- protocolParameters : PROTOCOL_PARAMS
1133+ protocolParameters : PROTOCOL_PARAMS ,
1134+ passAdditionalUtxos : true // Required for synthetic UTxOs not on chain
11241135 } )
11251136
11261137 const tx = await signBuilder . toTransaction ( )
@@ -1195,7 +1206,8 @@ describe("TxBuilder Script Handling", () => {
11951206 const signBuilder = await builder . build ( {
11961207 changeAddress : CoreAddress . fromBech32 ( CHANGE_ADDRESS ) ,
11971208 availableUtxos : [ collateralUtxo1 , collateralUtxo2 , collateralUtxo3 ] ,
1198- protocolParameters : PROTOCOL_PARAMS
1209+ protocolParameters : PROTOCOL_PARAMS ,
1210+ passAdditionalUtxos : true // Required for synthetic UTxOs not on chain
11991211 } )
12001212
12011213 const tx = await signBuilder . toTransaction ( )
0 commit comments