@@ -687,7 +687,7 @@ impl LDNApplication {
687
687
repo : String ,
688
688
) -> Result < ApplicationFile , LDNError > {
689
689
// Get multisig threshold from blockchain
690
- let blockchain_threshold = match get_multisig_threshold_for_actor ( "actor_address" ) . await {
690
+ let blockchain_threshold = match get_multisig_threshold_for_actor ( & signer . signing_address ) . await {
691
691
Ok ( threshold) => Some ( threshold) ,
692
692
Err ( _) => None ,
693
693
} ;
@@ -803,7 +803,7 @@ impl LDNApplication {
803
803
repo : String ,
804
804
) -> Result < ApplicationFile , LDNError > {
805
805
// Get multisig threshold from blockchain
806
- let blockchain_threshold = match get_multisig_threshold_for_actor ( "actor_address" ) . await {
806
+ let blockchain_threshold = match get_multisig_threshold_for_actor ( & signer . signing_address ) . await {
807
807
Ok ( threshold) => Some ( threshold) ,
808
808
Err ( _) => None ,
809
809
} ;
@@ -1670,10 +1670,11 @@ impl LDNApplication {
1670
1670
log:: warn!( "Not enough signers for approval" ) ;
1671
1671
return Ok ( false ) ;
1672
1672
}
1673
+ let signer_index = if multisig_threshold <= 1 { 0 } else { 1 } ;
1673
1674
1674
- let signer = signers. 0 . get ( 1 ) . unwrap ( ) ;
1675
+ let signer = signers. 0 . get ( signer_index ) . unwrap ( ) ;
1675
1676
let signer_gh_handle = signer. github_username . clone ( ) ;
1676
- let valid_verifiers =
1677
+ let valid_verifiers: ValidVerifierList =
1677
1678
Self :: fetch_verifiers ( owner. clone ( ) , repo. clone ( ) ) . await ?;
1678
1679
if valid_verifiers. is_valid ( & signer_gh_handle) {
1679
1680
log:: info!( "Val Approval (G)- Validated!" ) ;
0 commit comments