Skip to content

Commit

Permalink
chore(mapper): added a condition to enable transaction details withou…
Browse files Browse the repository at this point in the history
…t enabling block details
  • Loading branch information
paulobressan committed Jul 26, 2023
1 parent 7623ac4 commit b076b47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mapper/babbage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl EventWriter {
transactions: None,
};

if self.config.include_block_details {
if self.config.include_block_details || self.config.include_transaction_details {
record.transactions = Some(self.collect_babbage_tx_records(source)?);
}

Expand Down
2 changes: 1 addition & 1 deletion src/mapper/byron.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl EventWriter {
transactions: None,
};

if self.config.include_block_details {
if self.config.include_block_details || self.config.include_transaction_details {
record.transactions = Some(self.collect_byron_tx_records(source)?);
}

Expand Down
2 changes: 1 addition & 1 deletion src/mapper/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ impl EventWriter {
transactions: None,
};

if self.config.include_block_details {
if self.config.include_block_details || self.config.include_transaction_details {
record.transactions = Some(self.collect_shelley_tx_records(source)?);
}

Expand Down

0 comments on commit b076b47

Please sign in to comment.