Skip to content

Commit 0190ec1

Browse files
Merge pull request #8456 from BitGo/fix/WAL-387-mpcv2-party-id-falsy-check
fix(sdk-core): use explicit undefined check for mpcv2PartyId
2 parents b1b174c + c2c3a79 commit 0190ec1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

commitlint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ module.exports = {
6767
'VL-',
6868
'WIN-',
6969
'WP-',
70+
'WAL-',
71+
'WCN-',
7072
'WCI-',
7173
'COIN-',
7274
'FIAT-',

modules/sdk-core/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ export class EcdsaMPCv2Utils extends BaseEcdsaUtils {
776776
const hashBuffer = hash.update(bufferContent).digest();
777777
const otherSigner = new DklsDsg.Dsg(
778778
userKeyShare,
779-
params.mpcv2PartyId ? params.mpcv2PartyId : 0,
779+
params.mpcv2PartyId !== undefined ? params.mpcv2PartyId : 0,
780780
derivationPath,
781781
hashBuffer
782782
);

0 commit comments

Comments
 (0)