File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
modules/sdk-core/src/bitgo Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import * as utxolib from '@bitgo/utxo-lib';
44import ScriptType2Of3 = utxolib . bitgo . outputScripts . ScriptType2Of3 ;
55import { WalletType } from '../wallet' ;
66
7+ /** @deprecated - will be removed when we drop support for utxolib */
78export function inferAddressType ( addressDetails : { chain : number } ) : ScriptType2Of3 | null {
89 return utxolib . bitgo . isChainCode ( addressDetails . chain )
910 ? utxolib . bitgo . scriptTypeForChain ( addressDetails . chain )
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ import { TradingAccount } from '../trading';
4040import { getTxRequest } from '../tss' ;
4141import {
4242 EddsaUnsignedTransaction ,
43- inferAddressType ,
4443 IntentOptionsForMessage ,
4544 IntentOptionsForTypedData ,
4645 RequestTracer ,
@@ -1389,11 +1388,6 @@ export class Wallet implements IWallet {
13891388 . send ( addressParams )
13901389 . result ( ) ) as any ;
13911390
1392- // infer its address type
1393- if ( _ . isObject ( newAddress . coinSpecific ) ) {
1394- newAddress . addressType = inferAddressType ( newAddress ) ;
1395- }
1396-
13971391 newAddress . keychains = keychains ;
13981392 newAddress . baseAddress = baseAddress ?? _ . get ( this . _wallet , 'coinSpecific.baseAddress' ) ;
13991393 newAddress . format = addressParams . format ;
You can’t perform that action at this time.
0 commit comments