File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export async function handleConsolidate(
3838 throw new Error ( 'consolidateAddresses must be an array of addresses' ) ;
3939 }
4040
41- const isMPC = wallet . _wallet . multisigType === 'tss' ;
41+ const isMPC = wallet . multisigType ( ) === 'tss' ;
4242
4343 try {
4444 const consolidationParams : BuildConsolidationTransactionOptions = {
@@ -91,7 +91,7 @@ export async function handleConsolidate(
9191
9292 successfulTxs . push ( result ) ;
9393 } catch ( e ) {
94- console . dir ( e ) ;
94+ logger . error ( 'Error during account consolidation: %s' , ( e as Error ) . message , e ) ;
9595 failedTxs . push ( e as any ) ;
9696 }
9797 }
@@ -107,7 +107,7 @@ export async function handleConsolidate(
107107 msg = `Consolidations failed: ${ failedTxs . length } and succeeded: ${ successfulTxs . length } ` ;
108108 } else {
109109 // All failed
110- status = 400 ;
110+ status = 500 ;
111111 msg = 'All consolidations failed' ;
112112 }
113113
You can’t perform that action at this time.
0 commit comments