From 97a869264d43d8828329d685dbb4f8c29eb99a90 Mon Sep 17 00:00:00 2001 From: xjd Date: Mon, 5 Feb 2024 17:01:31 +0800 Subject: [PATCH] Fix test case bug --- tests/omni_lock_rust/tests/test_sudt_supply.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/omni_lock_rust/tests/test_sudt_supply.rs b/tests/omni_lock_rust/tests/test_sudt_supply.rs index 5522a93..ebe9aa6 100644 --- a/tests/omni_lock_rust/tests/test_sudt_supply.rs +++ b/tests/omni_lock_rust/tests/test_sudt_supply.rs @@ -23,7 +23,7 @@ fn gen_info_cell_type_script() -> (Script, [u8; 32]) { rng.fill(&mut args[..]); let script = Script::new_builder() .code_hash(data_hash.clone()) - .hash_type(ScriptHashType::Data.into()) + .hash_type(ScriptHashType::Data1.into()) .args(Bytes::from(args).pack()) .build(); let script_hash = script.calc_script_hash(); @@ -49,7 +49,7 @@ fn sudt_type_script(loader: &DummyDataLoader, tx: &TransactionView) -> Script { let data_hash = CellOutput::calc_data_hash(&SIMPLE_UDT); Script::new_builder() .code_hash(data_hash.clone()) - .hash_type(ScriptHashType::Data.into()) + .hash_type(ScriptHashType::Data1.into()) .args(omni_lock_hash.as_bytes().pack()) .build() }