Skip to content

Commit

Permalink
Fix after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-tkach committed Jan 10, 2025
1 parent 847c6dc commit 60a0dba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions rust/cardano-blockchain-types/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//! Catalyst Enhanced `MultiEraBlock` Structures
mod auxdata;
pub mod conversion;
mod fork;
pub mod hashes;
mod metadata;
mod multi_era_block_data;
Expand Down Expand Up @@ -28,12 +30,4 @@ pub use slot::Slot;
pub use txn_index::TxnIndex;
pub use txn_witness::{TxnWitness, VKeyHash};

mod auxdata;
mod cip134_uri;
mod fork;
mod multi_era_block_data;
mod network;
mod point;
mod slot;
mod txn_index;
mod txn_witness;
4 changes: 2 additions & 2 deletions rust/rbac-registration/src/cardano/cip509/cip509.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl Cip509 {

let decoded_block = block.decode();
for index in 0..decoded_block.tx_count() {
let index = TxnIndex::from_saturating(index);
let index = TxnIndex::from(index);
match Self::new(block, index) {
Ok(Some(v)) => result.push(v),
// Normal situation: there is no Cip509 data in this transaction.
Expand All @@ -190,7 +190,7 @@ impl Cip509 {
/// Creates an "empty" `Cip509` instance with all optional fields set to `None`.
/// Non-optional fields set to dummy values that must be overwritten.
fn with_report(report: ProblemReport) -> Self {
Self::with_slot_and_index(report, 0.into(), TxnIndex::from_saturating(0))
Self::with_slot_and_index(report, 0.into(), TxnIndex::from(0))
}

/// Creates an "empty" `Cip509` instance with all optional fields set to `None`.
Expand Down

0 comments on commit 60a0dba

Please sign in to comment.