File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
cardano-blockchain-types/src
rbac-registration/src/cardano/cip509 Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 11//! Catalyst Enhanced `MultiEraBlock` Structures
22
3+ mod auxdata;
34pub mod conversion;
5+ mod fork;
46pub mod hashes;
57mod metadata;
68mod multi_era_block_data;
@@ -28,12 +30,4 @@ pub use slot::Slot;
2830pub use txn_index:: TxnIndex ;
2931pub use txn_witness:: { TxnWitness , VKeyHash } ;
3032
31- mod auxdata;
3233mod cip134_uri;
33- mod fork;
34- mod multi_era_block_data;
35- mod network;
36- mod point;
37- mod slot;
38- mod txn_index;
39- mod txn_witness;
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ impl Cip509 {
170170
171171 let decoded_block = block. decode ( ) ;
172172 for index in 0 ..decoded_block. tx_count ( ) {
173- let index = TxnIndex :: from_saturating ( index) ;
173+ let index = TxnIndex :: from ( index) ;
174174 match Self :: new ( block, index) {
175175 Ok ( Some ( v) ) => result. push ( v) ,
176176 // Normal situation: there is no Cip509 data in this transaction.
@@ -190,7 +190,7 @@ impl Cip509 {
190190 /// Creates an "empty" `Cip509` instance with all optional fields set to `None`.
191191 /// Non-optional fields set to dummy values that must be overwritten.
192192 fn with_report ( report : ProblemReport ) -> Self {
193- Self :: with_slot_and_index ( report, 0 . into ( ) , TxnIndex :: from_saturating ( 0 ) )
193+ Self :: with_slot_and_index ( report, 0 . into ( ) , TxnIndex :: from ( 0 ) )
194194 }
195195
196196 /// Creates an "empty" `Cip509` instance with all optional fields set to `None`.
You can’t perform that action at this time.
0 commit comments