@@ -350,12 +350,12 @@ type ConwayTransactionBody struct {
350
350
TxValidityIntervalStart uint64 `cbor:"8,keyasint,omitempty"`
351
351
TxMint * common.MultiAsset [common.MultiAssetTypeMint ] `cbor:"9,keyasint,omitempty"`
352
352
TxScriptDataHash * common.Blake2b256 `cbor:"11,keyasint,omitempty"`
353
- TxCollateral [] shelley.ShelleyTransactionInput `cbor:"13,keyasint,omitempty"`
354
- TxRequiredSigners [] common.Blake2b224 `cbor:"14,keyasint,omitempty"`
353
+ TxCollateral cbor. SetType [ shelley.ShelleyTransactionInput ] `cbor:"13,keyasint,omitempty,omitzero "`
354
+ TxRequiredSigners cbor. SetType [ common.Blake2b224 ] `cbor:"14,keyasint,omitempty,omitzero "`
355
355
NetworkId uint8 `cbor:"15,keyasint,omitempty"`
356
356
TxCollateralReturn * babbage.BabbageTransactionOutput `cbor:"16,keyasint,omitempty"`
357
357
TxTotalCollateral uint64 `cbor:"17,keyasint,omitempty"`
358
- TxReferenceInputs [] shelley.ShelleyTransactionInput `cbor:"18,keyasint,omitempty"`
358
+ TxReferenceInputs cbor. SetType [ shelley.ShelleyTransactionInput ] `cbor:"18,keyasint,omitempty,omitzero "`
359
359
TxVotingProcedures common.VotingProcedures `cbor:"19,keyasint,omitempty"`
360
360
TxProposalProcedures []common.ProposalProcedure `cbor:"20,keyasint,omitempty"`
361
361
TxCurrentTreasuryValue int64 `cbor:"21,keyasint,omitempty"`
@@ -431,14 +431,14 @@ func (b *ConwayTransactionBody) AssetMint() *common.MultiAsset[common.MultiAsset
431
431
432
432
func (b * ConwayTransactionBody ) Collateral () []common.TransactionInput {
433
433
ret := []common.TransactionInput {}
434
- for _ , collateral := range b .TxCollateral {
434
+ for _ , collateral := range b .TxCollateral . Items () {
435
435
ret = append (ret , collateral )
436
436
}
437
437
return ret
438
438
}
439
439
440
440
func (b * ConwayTransactionBody ) RequiredSigners () []common.Blake2b224 {
441
- return b .TxRequiredSigners [:]
441
+ return b .TxRequiredSigners . Items ()
442
442
}
443
443
444
444
func (b * ConwayTransactionBody ) ScriptDataHash () * common.Blake2b256 {
@@ -447,7 +447,7 @@ func (b *ConwayTransactionBody) ScriptDataHash() *common.Blake2b256 {
447
447
448
448
func (b * ConwayTransactionBody ) ReferenceInputs () []common.TransactionInput {
449
449
ret := []common.TransactionInput {}
450
- for _ , input := range b .TxReferenceInputs {
450
+ for _ , input := range b .TxReferenceInputs . Items () {
451
451
ret = append (ret , & input )
452
452
}
453
453
return ret
0 commit comments