Skip to content

Commit ccc3237

Browse files
committed
fix(sdk-core): use correct api param name for user gpg pubkey
Ticket: BG-00000
1 parent cf9efc3 commit ccc3237

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/bitgo/test/v2/unit/internal/tssUtils/ecdsa.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ describe('TSS Ecdsa Utils:', async function () {
630630
const keyShare = await createIncompleteBitgoHeldBackupKeyShare(userGpgKey, backupKeyShare, bitgoGpgKey);
631631

632632
nock(bgUrl)
633-
.post(`/api/v2/${coin}/krs/backupkeys`, _.matches({ userPub: userGpgKey.publicKey }))
633+
.post(`/api/v2/${coin}/krs/backupkeys`, _.matches({ userGPGPublicKey: userGpgKey.publicKey }))
634634
.reply(201, keyShare);
635635

636636
return keyShare;

modules/sdk-core/src/bitgo/utils/tss/baseTSSUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default class BaseTssUtils<KeyShare> extends MpcUtils implements ITssUtil
4545
return await this.bitgo
4646
.post(this.baseCoin.url('/krs/backupkeys'))
4747
.send({
48-
userPub: userGpgKey.publicKey,
48+
userGPGPublicKey: userGpgKey.publicKey,
4949
})
5050
.result();
5151
}

0 commit comments

Comments
 (0)