Skip to content

Commit fda31ef

Browse files
committed
chore: use sdk "onPrem" subtype
Ticket: WP-4759
1 parent 3e2e555 commit fda31ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/masterBitgoExpress/handleSendMany.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ export async function handleSendMany(req: MasterApiSpecRouteRequest<'v1.wallet.s
3131
}
3232

3333
// TODO: uncomment when on-prem type is added to SDK
34-
// if (wallet.type() !== 'cold' || wallet.subType() !== 'onPrem') {
35-
// throw new Error('Wallet is not an on-prem wallet');
36-
// }
34+
if (wallet.type() !== 'cold' || wallet.subType() !== 'onPrem') {
35+
throw new Error('Wallet is not an on-prem wallet');
36+
}
3737

3838
const keyIdIndex = params.source === 'user' ? KeyIndices.USER : KeyIndices.BACKUP;
3939
logger.info(`Key ID index: ${keyIdIndex}`);

0 commit comments

Comments
 (0)