Skip to content

Commit 60a0dba

Browse files
Fix after merge
1 parent 847c6dc commit 60a0dba

File tree

2 files changed

+4
-10
lines changed
  • rust
    • cardano-blockchain-types/src
    • rbac-registration/src/cardano/cip509

2 files changed

+4
-10
lines changed

rust/cardano-blockchain-types/src/lib.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
//! Catalyst Enhanced `MultiEraBlock` Structures
22
3+
mod auxdata;
34
pub mod conversion;
5+
mod fork;
46
pub mod hashes;
57
mod metadata;
68
mod multi_era_block_data;
@@ -28,12 +30,4 @@ pub use slot::Slot;
2830
pub use txn_index::TxnIndex;
2931
pub use txn_witness::{TxnWitness, VKeyHash};
3032

31-
mod auxdata;
3233
mod 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;

rust/rbac-registration/src/cardano/cip509/cip509.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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`.

0 commit comments

Comments
 (0)