File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments