From 16a8c8d2579a1228323f560882c9cf690abed5b6 Mon Sep 17 00:00:00 2001 From: Cedric <14017092+douyixuan@users.noreply.github.com> Date: Sat, 12 Oct 2024 00:23:13 +0800 Subject: [PATCH] fix some test case --- tests/examples/sudt.cell | 2 +- tests/examples/xudt.cell | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/examples/sudt.cell b/tests/examples/sudt.cell index 7cab55c..52cbb14 100644 --- a/tests/examples/sudt.cell +++ b/tests/examples/sudt.cell @@ -12,7 +12,7 @@ const ( func main() { script := ckb.loadScript() - if !ckb.verifyScript(script) { + if !ckb.verifyScript(script, true) { return ERROR_SCRIPT_ERROR } rawArgs := script.Args().AsSlice() diff --git a/tests/examples/xudt.cell b/tests/examples/xudt.cell index 42fdab0..855121f 100644 --- a/tests/examples/xudt.cell +++ b/tests/examples/xudt.cell @@ -156,7 +156,7 @@ func main() { ins := Inputs() args := script.args val := getFlagFromArgs(args) - owner_mode_for_input_type, owner_mode_for_input_lock, owner_mode_for_output_type := getOwnerModeCheckMethod() + owner_mode_for_input_type, owner_mode_for_input_lock, owner_mode_for_output_type := getOwnerModeCheckMethod(val) // owner mode checking var owner_mode bool