@@ -690,8 +690,8 @@ mod tests {
690690 } ;
691691 use acropolis_common:: {
692692 Address , AddressDelta , AssetInfoRecord , AssetMetadata , AssetMetadataStandard , AssetName ,
693- Datum , NativeAsset , NativeAssetDelta , PolicyId , ShelleyAddress , TxIdentifier , TxOutput ,
694- TxUTxODeltas , UTxOIdentifier , Value ,
693+ Datum , NativeAsset , NativeAssetDelta , PolicyId , ShelleyAddress , TxHash , TxIdentifier ,
694+ TxOutput , TxUTxODeltas , UTxOIdentifier , Value ,
695695 } ;
696696 use serde_cbor:: Value as CborValue ;
697697
@@ -845,7 +845,7 @@ mod tests {
845845
846846 fn make_output ( policy_id : PolicyId , asset_name : AssetName , datum : Option < Vec < u8 > > ) -> TxOutput {
847847 TxOutput {
848- utxo_identifier : UTxOIdentifier :: new ( 0 , 0 , 0 ) ,
848+ utxo_identifier : UTxOIdentifier :: new ( TxHash :: default ( ) , 0 ) ,
849849 address : dummy_address ( ) ,
850850 value : Value {
851851 lovelace : 0 ,
@@ -1263,7 +1263,7 @@ mod tests {
12631263 StoreTransactions :: None ,
12641264 ) ;
12651265
1266- let input = UTxOIdentifier :: new ( 0 , 0 , 0 ) ;
1266+ let input = UTxOIdentifier :: new ( TxHash :: default ( ) , 0 ) ;
12671267 let output = make_output ( policy_id, name, None ) ;
12681268
12691269 let tx_deltas = TxUTxODeltas {
@@ -1428,15 +1428,15 @@ mod tests {
14281428 tx_identifier,
14291429 inputs : Vec :: new ( ) ,
14301430 outputs : vec ! [ TxOutput {
1431- utxo_identifier: UTxOIdentifier :: new( 0 , 0 , 0 ) ,
1431+ utxo_identifier: UTxOIdentifier :: new( TxHash :: default ( ) , 0 ) ,
14321432 ..output. clone( )
14331433 } ] ,
14341434 } ;
14351435 let tx2 = TxUTxODeltas {
14361436 tx_identifier,
14371437 inputs : Vec :: new ( ) ,
14381438 outputs : vec ! [ TxOutput {
1439- utxo_identifier: UTxOIdentifier :: new( 0 , 0 , 1 ) ,
1439+ utxo_identifier: UTxOIdentifier :: new( TxHash :: default ( ) , 1 ) ,
14401440 ..output
14411441 } ] ,
14421442 } ;
@@ -1470,15 +1470,15 @@ mod tests {
14701470 tx_identifier : TxIdentifier :: new ( 9 , 0 ) ,
14711471 inputs : Vec :: new ( ) ,
14721472 outputs : vec ! [ TxOutput {
1473- utxo_identifier: UTxOIdentifier :: new( 9 , 0 , 0 ) ,
1473+ utxo_identifier: UTxOIdentifier :: new( TxHash :: default ( ) , 0 ) ,
14741474 ..out1
14751475 } ] ,
14761476 } ;
14771477 let tx2 = TxUTxODeltas {
14781478 tx_identifier : TxIdentifier :: new ( 10 , 0 ) ,
14791479 inputs : Vec :: new ( ) ,
14801480 outputs : vec ! [ TxOutput {
1481- utxo_identifier: UTxOIdentifier :: new( 10 , 0 , 0 ) ,
1481+ utxo_identifier: UTxOIdentifier :: new( TxHash :: default ( ) , 0 ) ,
14821482 ..out2
14831483 } ] ,
14841484 } ;
@@ -1513,23 +1513,23 @@ mod tests {
15131513 tx_identifier : TxIdentifier :: new ( 9 , 0 ) ,
15141514 inputs : Vec :: new ( ) ,
15151515 outputs : vec ! [ TxOutput {
1516- utxo_identifier: UTxOIdentifier :: new( 9 , 0 , 0 ) ,
1516+ utxo_identifier: UTxOIdentifier :: new( TxHash :: default ( ) , 0 ) ,
15171517 ..base_output. clone( )
15181518 } ] ,
15191519 } ;
15201520 let tx2 = TxUTxODeltas {
15211521 tx_identifier : TxIdentifier :: new ( 8 , 0 ) ,
15221522 inputs : Vec :: new ( ) ,
15231523 outputs : vec ! [ TxOutput {
1524- utxo_identifier: UTxOIdentifier :: new( 8 , 0 , 0 ) ,
1524+ utxo_identifier: UTxOIdentifier :: new( TxHash :: default ( ) , 0 ) ,
15251525 ..base_output. clone( )
15261526 } ] ,
15271527 } ;
15281528 let tx3 = TxUTxODeltas {
15291529 tx_identifier : TxIdentifier :: new ( 7 , 0 ) ,
15301530 inputs : Vec :: new ( ) ,
15311531 outputs : vec ! [ TxOutput {
1532- utxo_identifier: UTxOIdentifier :: new( 7 , 0 , 0 ) ,
1532+ utxo_identifier: UTxOIdentifier :: new( TxHash :: default ( ) , 0 ) ,
15331533 ..base_output
15341534 } ] ,
15351535 } ;
0 commit comments