From 2dddeb30fd0c7a3a8edf772b4e88750c223acb65 Mon Sep 17 00:00:00 2001 From: joii2020 Date: Tue, 20 Feb 2024 11:14:35 +0800 Subject: [PATCH] Otx testcase: Handle comments --- tests/omni_lock_rust/tests/test_otx.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/omni_lock_rust/tests/test_otx.rs b/tests/omni_lock_rust/tests/test_otx.rs index cf6744b..ca22df0 100644 --- a/tests/omni_lock_rust/tests/test_otx.rs +++ b/tests/omni_lock_rust/tests/test_otx.rs @@ -854,7 +854,7 @@ fn generate_otx_d0(dl: &mut Resource, px: &mut Pickaxer) -> ckb_types::core::Tra tx_builder.build() } -// no seal +// Failed: No seal fn generate_otx_a1_fail(dl: &mut Resource, px: &mut Pickaxer) -> ckb_types::core::TransactionView { let tx = generate_otx_a0(dl, px); let mut witnesses: Vec = tx.witnesses().into_iter().map(|f| f).collect(); @@ -880,7 +880,7 @@ fn generate_otx_a1_fail(dl: &mut Resource, px: &mut Pickaxer) -> ckb_types::core tx.as_advanced_builder().set_witnesses(witnesses).build() } -// +// Failed: The test_cobuild_otx_msg_flow is not 0 fn generate_otx_a2_fail(dl: &mut Resource, px: &mut Pickaxer) -> ckb_types::core::TransactionView { let tx = generate_otx_a0(dl, px); let mut witnesses: Vec = tx.witnesses().into_iter().map(|f| f).collect(); @@ -914,11 +914,9 @@ fn generate_otx_a2_fail(dl: &mut Resource, px: &mut Pickaxer) -> ckb_types::core witnesses[0] = schemas::top_level::WitnessLayout::new_builder().set(otx.unwrap()).build().as_bytes().pack(); tx.as_advanced_builder().set_witnesses(witnesses).build() - - // let seal = [vec![0x22], sign].concat(); } -// failed Message Action ScriptHash +// Failed: Message Action ScriptHash fn generate_otx_a3_fail(dl: &mut Resource, px: &mut Pickaxer) -> ckb_types::core::TransactionView { let tx = generate_otx_a0(dl, px); let mut witnesses: Vec = tx.witnesses().into_iter().map(|f| f).collect(); @@ -964,6 +962,7 @@ fn generate_otx_a3_fail(dl: &mut Resource, px: &mut Pickaxer) -> ckb_types::core tx.as_advanced_builder().set_witnesses(witnesses).build() } +// Failed: The intput cells/output cells/cell deps/header deps is 0 fn generate_otx_a4_fail(dl: &mut Resource, px: &mut Pickaxer) -> ckb_types::core::TransactionView { let tx = generate_otx_a0(dl, px); let mut witnesses: Vec = tx.witnesses().into_iter().map(|f| f).collect();