Skip to content

Commit e8c036c

Browse files
committed
update fix
1 parent 6fe0d86 commit e8c036c

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/traits/default_impls.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,17 @@ impl DefaultCellDepResolver {
180180
NetworkInfo::devnet()
181181
};
182182

183-
if let Some((v1_dep_hash, v1_dep_index)) = MultisigScript::V2.dep_group(network_info) {
184-
let multisig_v1_dep = CellDep::new_builder()
185-
.out_point(OutPoint::new(v1_dep_hash.pack(), v1_dep_index))
183+
if let Some((v2_dep_hash, v2_dep_index)) = MultisigScript::V2.dep_group(network_info) {
184+
let multisig_v2_dep = CellDep::new_builder()
185+
.out_point(OutPoint::new(v2_dep_hash.pack(), v2_dep_index))
186186
.dep_type(DepType::DepGroup.into())
187187
.build();
188188

189189
items.insert(
190190
MultisigScript::V2.script_id(),
191191
(
192-
multisig_v1_dep,
193-
"Secp256k1 blake160 multisig(v1) all".to_string(),
192+
multisig_v2_dep,
193+
"Secp256k1 blake160 multisig(v2) all".to_string(),
194194
),
195195
);
196196
}

src/transaction/handler/multisig.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ impl Secp256k1Blake160MultisigAllScriptHandler {
4949
Ok(ret)
5050
}
5151

52-
pub fn new_with_network(network: &NetworkInfo) -> Result<Self, TxBuilderError> {
53-
Self::new(network, MultisigScript::Legacy)
54-
}
55-
5652
pub fn new_with_customize(multisig_script: MultisigScript, cell_deps: Vec<CellDep>) -> Self {
5753
Self {
5854
multisig_script,

0 commit comments

Comments
 (0)