Skip to content

Commit

Permalink
cargo +stable fmt --all
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Jun 22, 2022
1 parent 39fefa5 commit c628047
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions zebra-chain/src/transaction/tests/vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -838,14 +838,15 @@ fn zip143_sighash() -> Result<()> {
Some(output) => mock_pre_v5_output_list(output, input_index.unwrap()),
None => vec![],
};
let result =
hex::encode(transaction.sighash(
let result = hex::encode(
transaction.sighash(
NetworkUpgrade::from_branch_id(test.consensus_branch_id)
.expect("must be a valid branch ID"),
HashType::from_bits(test.hash_type).expect("must be a valid HashType"),
&all_previous_outputs,
input_index,
));
),
);
let expected = hex::encode(test.sighash);
assert_eq!(expected, result, "test #{}: sighash does not match", i);
}
Expand Down Expand Up @@ -873,14 +874,15 @@ fn zip243_sighash() -> Result<()> {
Some(output) => mock_pre_v5_output_list(output, input_index.unwrap()),
None => vec![],
};
let result =
hex::encode(transaction.sighash(
let result = hex::encode(
transaction.sighash(
NetworkUpgrade::from_branch_id(test.consensus_branch_id)
.expect("must be a valid branch ID"),
HashType::from_bits(test.hash_type).expect("must be a valid HashType"),
&all_previous_outputs,
input_index,
));
),
);
let expected = hex::encode(test.sighash);
assert_eq!(expected, result, "test #{}: sighash does not match", i);
}
Expand Down

0 comments on commit c628047

Please sign in to comment.