File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -409,11 +409,9 @@ export class Listener {
409409 private accountAddedToMultiSig ( transaction : Transaction , address : Address ) : boolean {
410410 let isCosignatoryAdded = false ;
411411 if ( transaction instanceof MultisigAccountModificationTransaction ) {
412- transaction . modifications . forEach ( ( _ : MultisigCosignatoryModification ) => {
413- if ( _ . modificiationType === CosignatoryModificationAction . Add && _ . cosignatoryPublicAccount . address . equals ( address ) ) {
414- isCosignatoryAdded = true ;
415- }
416- } ) ;
412+ isCosignatoryAdded = transaction . modifications . find ( ( _ : MultisigCosignatoryModification ) =>
413+ _ . modificiationType === CosignatoryModificationAction . Add &&
414+ _ . cosignatoryPublicAccount . address . equals ( address ) ) !== undefined ;
417415 }
418416 return isCosignatoryAdded ;
419417 }
You can’t perform that action at this time.
0 commit comments