@@ -71,29 +71,28 @@ class TransactionBody with ADASerialization {
7171 ttl: cbor.getValueFromIntKey <CborObject ?>(3 )? .getInteger (),
7272 withdrawals: cbor
7373 .getValueFromIntKey <CborObject ?>(5 )
74- ? .to <Withdrawals , CborMapValue >((e) => Withdrawals .deserialize (e)),
74+ ? .castTo <Withdrawals , CborMapValue >(
75+ (e) => Withdrawals .deserialize (e)),
7576 auxiliaryDataHash: cbor
7677 .getValueFromIntKey <CborObject ?>(7 )
77- ? .to <AuxiliaryDataHash , CborBytesValue >(
78+ ? .castTo <AuxiliaryDataHash , CborBytesValue >(
7879 (CborBytesValue e) => AuxiliaryDataHash .deserialize (e)),
7980 certs: cbor
8081 .getValueFromIntKey <CborObject ?>(4 )
81- ? .to <List <Certificate >, CborListValue <CborObject >>(
82- (CborListValue <CborObject > e) => e.value
83- .map ((e) => Certificate .deserialize (e.cast ()))
84- .toList ()),
82+ ? .castTo <List <Certificate >, CborListValue <CborObject >>((CborListValue <CborObject > e) =>
83+ e.value.map ((e) => Certificate .deserialize (e.cast ())).toList ()),
8584 update: cbor
8685 .getValueFromIntKey <CborListValue ?>(6 )
87- ? .to <Update , CborListValue >((e) => Update .deserialize (e)),
86+ ? .castTo <Update , CborListValue >((e) => Update .deserialize (e)),
8887 validityStartInterval: cbor.getValueFromIntKey <CborObject ?>(8 )? .getInteger (),
89- mint: cbor.getValueFromIntKey <CborMapValue ?>(9 )? .to <Mint , CborMapValue >((e) => Mint .deserialize (e.cast ())),
90- scriptDataHash: cbor.getValueFromIntKey <CborBytesValue ?>(11 )? .to <ScriptDataHash , CborBytesValue >((e) => ScriptDataHash .deserialize (e)),
91- collateral: cbor.getValueFromIntKey <CborListValue ?>(13 )? .to <List <TransactionInput >, CborListValue <CborObject >>((e) => e.value.map ((e) => TransactionInput .deserialize (e.cast ())).toList ()),
92- requiredSigners: cbor.getValueFromIntKey <CborListValue ?>(14 )? .to <List <Ed25519KeyHash >, CborListValue <CborObject >>((e) => e.value.map ((e) => Ed25519KeyHash .deserialize (e.cast ())).toList ()),
93- network: cbor.getValueFromIntKey <CborIntValue ?>(15 )? .to <ADANetwork , CborIntValue >((e) => ADANetwork .fromTag (e.value)),
94- collateralReturn: cbor.getValueFromIntKey <CborObject ?>(16 )? .to <TransactionOutput , CborObject >((e) => TransactionOutput .deserialize (e)),
88+ mint: cbor.getValueFromIntKey <CborMapValue ?>(9 )? .castTo <Mint , CborMapValue >((e) => Mint .deserialize (e.cast ())),
89+ scriptDataHash: cbor.getValueFromIntKey <CborBytesValue ?>(11 )? .castTo <ScriptDataHash , CborBytesValue >((e) => ScriptDataHash .deserialize (e)),
90+ collateral: cbor.getValueFromIntKey <CborListValue ?>(13 )? .castTo <List <TransactionInput >, CborListValue <CborObject >>((e) => e.value.map ((e) => TransactionInput .deserialize (e.cast ())).toList ()),
91+ requiredSigners: cbor.getValueFromIntKey <CborListValue ?>(14 )? .castTo <List <Ed25519KeyHash >, CborListValue <CborObject >>((e) => e.value.map ((e) => Ed25519KeyHash .deserialize (e.cast ())).toList ()),
92+ network: cbor.getValueFromIntKey <CborIntValue ?>(15 )? .castTo <ADANetwork , CborIntValue >((e) => ADANetwork .fromTag (e.value)),
93+ collateralReturn: cbor.getValueFromIntKey <CborObject ?>(16 )? .castTo <TransactionOutput , CborObject >((e) => TransactionOutput .deserialize (e)),
9594 totalCollateral: cbor.getValueFromIntKey <CborObject ?>(17 )? .getInteger (),
96- referenceInputs: cbor.getValueFromIntKey <CborListValue ?>(18 )? .to <List <TransactionInput >, CborListValue <CborObject >>((e) => e.value.map ((e) => TransactionInput .deserialize (e.cast ())).toList ()));
95+ referenceInputs: cbor.getValueFromIntKey <CborListValue ?>(18 )? .castTo <List <TransactionInput >, CborListValue <CborObject >>((e) => e.value.map ((e) => TransactionInput .deserialize (e.cast ())).toList ()));
9796 }
9897 TransactionBody copyWith ({
9998 List <TransactionInput >? inputs,
0 commit comments