Skip to content

Commit 71634e3

Browse files
feat(mbe) fix coment
1 parent 177838e commit 71634e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/master/handlers/handleConsolidate.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)