diff --git a/src/utils/tx_helper.rs b/src/utils/tx_helper.rs index aa1a3d3f..1415f680 100644 --- a/src/utils/tx_helper.rs +++ b/src/utils/tx_helper.rs @@ -112,14 +112,14 @@ impl TxHelper { .build(); self.transaction = self.transaction.as_advanced_builder().input(input).build(); - let mut cell_deps: HashSet = HashSet::default(); + let mut cell_deps: HashSet = self.transaction.cell_deps().into_iter().collect(); for ((code_hash, _), _) in self.input_group(get_live_cell, skip_check)?.into_iter() { let code_hash: H256 = code_hash.unpack(); if code_hash == SIGHASH_TYPE_HASH { cell_deps.insert(genesis_info.sighash_dep()); } else if code_hash == MULTISIG_TYPE_HASH { cell_deps.insert(genesis_info.multisig_dep()); - } else { + } else if !skip_check { panic!("Unexpected input code_hash: {:#x}", code_hash); } }