Skip to content

Commit

Permalink
chore: Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega committed Apr 16, 2022
1 parent e8f16c9 commit 0b4e51d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/mapper/shelley.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ impl EventWriter {
.find(|(k, _)| *k == (idx as u32))
.map(|(_, v)| v);

#[allow(deprecated)]
let tx_hash = crypto::hash_transaction(tx).to_hex();

let child = self.child_writer(EventContext {
Expand Down
12 changes: 6 additions & 6 deletions src/sinks/assert/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ pub fn assertion_loop(

state = reduce_state(state, event);

run_check!(&config, &state, block_depth_doesnt_skip_numbers);
run_check!(&config, &state, block_slot_increases);
run_check!(&config, &state, block_previous_hash_matches);
run_check!(&config, &state, event_timestamp_increases);
run_check!(&config, &state, tx_records_matches_block_count);
run_check!(&config, &state, tx_has_input_and_output);
run_check!(config, &state, block_depth_doesnt_skip_numbers);
run_check!(config, &state, block_slot_increases);
run_check!(config, &state, block_previous_hash_matches);
run_check!(config, &state, event_timestamp_increases);
run_check!(config, &state, tx_records_matches_block_count);
run_check!(config, &state, tx_has_input_and_output);
}

Ok(())
Expand Down

0 comments on commit 0b4e51d

Please sign in to comment.