Skip to content

Commit

Permalink
Fix test case bug
Browse files Browse the repository at this point in the history
  • Loading branch information
XuJiandong committed Feb 5, 2024
1 parent 34fa80a commit 97a8692
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/omni_lock_rust/tests/test_sudt_supply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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()
}
Expand Down

0 comments on commit 97a8692

Please sign in to comment.