@@ -1038,11 +1038,12 @@ export class Wallets implements IWallets {
10381038 const reqId = new RequestTracer ( ) ;
10391039 this . bitgo . setRequestTracer ( reqId ) ;
10401040
1041+ let multisigTypeVersion : 'MPCv2' | undefined ;
10411042 if ( multisigType === 'tss' && this . baseCoin . getMPCAlgorithm ( ) === 'ecdsa' ) {
10421043 const tssSettings : TssSettings = await this . bitgo
10431044 . get ( this . bitgo . microservicesUrl ( '/api/v2/tss/settings' ) )
10441045 . result ( ) ;
1045- const multisigTypeVersion =
1046+ multisigTypeVersion =
10461047 tssSettings . coinSettings [ this . baseCoin . getFamily ( ) ] ?. walletCreationSettings ?. coldMultiSigTypeVersion ;
10471048 walletVersion = this . determineEcdsaMpcWalletVersion ( walletVersion , multisigTypeVersion ) ;
10481049 }
@@ -1071,6 +1072,7 @@ export class Wallets implements IWallets {
10711072 keyType : 'tss' ,
10721073 commonKeychain : commonKeychain ,
10731074 derivedFromParentWithSeed : coldDerivationSeed ,
1075+ isMPCv2 : multisigTypeVersion === 'MPCv2' ? true : undefined ,
10741076 } ;
10751077 const userKeychain = await this . baseCoin . keychains ( ) . add ( userKeychainParams ) ;
10761078
@@ -1079,6 +1081,7 @@ export class Wallets implements IWallets {
10791081 keyType : 'tss' ,
10801082 commonKeychain : commonKeychain ,
10811083 derivedFromParentWithSeed : coldDerivationSeed ,
1084+ isMPCv2 : multisigTypeVersion === 'MPCv2' ? true : undefined ,
10821085 } ;
10831086
10841087 const backupKeychain = await this . baseCoin . keychains ( ) . add ( backupKeyChainParams ) ;
0 commit comments