Skip to content

Commit

Permalink
fix genesis_block_builder_example test
Browse files Browse the repository at this point in the history
Signed-off-by: Shunkichi Sato <49983831+s8sato@users.noreply.github.com>
  • Loading branch information
s8sato committed Oct 23, 2024
1 parent 478cce6 commit 44105ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/iroha_genesis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,6 @@ mod tests {
Ok(())
}

#[cfg(not_compile)]
#[test]
#[allow(clippy::too_many_lines)]
fn genesis_block_builder_example() {
Expand Down Expand Up @@ -592,7 +591,7 @@ mod tests {
{
let transaction = transactions[0];
// FIXME field `value` of struct `CommittedTransaction` is private
let instructions = transaction.value.instructions();
let instructions = transaction.as_ref().instructions();
let Executable::Instructions(instructions) = instructions else {
panic!("Expected instructions");
};
Expand All @@ -603,7 +602,7 @@ mod tests {

// Second transaction
let transaction = transactions[1];
let instructions = transaction.value.instructions();
let instructions = transaction.as_ref().instructions();
let Executable::Instructions(instructions) = instructions else {
panic!("Expected instructions");
};
Expand Down

0 comments on commit 44105ac

Please sign in to comment.