From 44105ac04c2f685153adf28be0db2238df8d6233 Mon Sep 17 00:00:00 2001 From: Shunkichi Sato <49983831+s8sato@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:12:22 +0900 Subject: [PATCH] fix `genesis_block_builder_example` test Signed-off-by: Shunkichi Sato <49983831+s8sato@users.noreply.github.com> --- crates/iroha_genesis/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/iroha_genesis/src/lib.rs b/crates/iroha_genesis/src/lib.rs index dde8c3307c..141f4fa0b6 100644 --- a/crates/iroha_genesis/src/lib.rs +++ b/crates/iroha_genesis/src/lib.rs @@ -548,7 +548,6 @@ mod tests { Ok(()) } - #[cfg(not_compile)] #[test] #[allow(clippy::too_many_lines)] fn genesis_block_builder_example() { @@ -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"); }; @@ -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"); };