@@ -61,7 +61,7 @@ import {
6161 UnexpectedAddressError ,
6262 EDDSAUtils ,
6363} from '@bitgo/sdk-core' ;
64- import { auditEddsaPrivateKey , deriveUnhardenedMps , getDerivationPath } from '@bitgo/sdk-lib-mpc' ;
64+ import { auditEddsaPrivateKey , getDerivationPath } from '@bitgo/sdk-lib-mpc' ;
6565import { BaseNetwork , CoinFamily , coins , SolCoin , BaseCoin as StaticsBaseCoin } from '@bitgo/statics' ;
6666import {
6767 KeyPair as SolKeyPair ,
@@ -1705,9 +1705,9 @@ export class Sol extends BaseCoin {
17051705
17061706 const index = params . index || 0 ;
17071707 const currPath = params . seed ? getDerivationPath ( params . seed ) + `/${ index } ` : `m/${ index } ` ;
1708- const accountId = isMpcV2
1709- ? deriveUnhardenedMps ( bitgoKey , currPath ) . slice ( 0 , 64 )
1710- : ( await EDDSAMethods . getInitializedMpcInstance ( ) ) . deriveUnhardened ( bitgoKey , currPath ) . slice ( 0 , 64 ) ;
1708+ const accountId = ( await EDDSAMethods . getInitializedMpcInstance ( ) )
1709+ . deriveUnhardened ( bitgoKey , currPath )
1710+ . slice ( 0 , 64 ) ;
17111711 const bs58EncodedPublicKey = new SolKeyPair ( { pub : accountId } ) . getAddress ( ) ;
17121712
17131713 const blockhash = await this . getBlockhash ( params . apiKey ) ;
@@ -1826,9 +1826,9 @@ export class Sol extends BaseCoin {
18261826 const baseAddressPath = params . seed
18271827 ? getDerivationPath ( params . seed ) + `/${ baseAddressIndex } `
18281828 : `m/${ baseAddressIndex } ` ;
1829- const baseAccountId = isMpcV2
1830- ? deriveUnhardenedMps ( bitgoKey , baseAddressPath ) . slice ( 0 , 64 )
1831- : ( await EDDSAMethods . getInitializedMpcInstance ( ) ) . deriveUnhardened ( bitgoKey , baseAddressPath ) . slice ( 0 , 64 ) ;
1829+ const baseAccountId = ( await EDDSAMethods . getInitializedMpcInstance ( ) )
1830+ . deriveUnhardened ( bitgoKey , baseAddressPath )
1831+ . slice ( 0 , 64 ) ;
18321832 const baseAddress = new SolKeyPair ( { pub : baseAccountId } ) . getAddress ( ) ;
18331833
18341834 let durableNoncePubKeysIndex = 0 ;
0 commit comments