File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
sdk-core/src/bitgo/wallet Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export async function handleInitLightningWallet(req: express.Request): Promise<u
8484 }
8585 ) ;
8686
87- const wallet = await coin . wallets ( ) . get ( { id : walletId } ) ;
87+ const wallet = await coin . wallets ( ) . get ( { id : walletId , includeBalance : false } ) ;
8888 if ( wallet . subType ( ) !== 'lightningSelfCustody' ) {
8989 throw new ApiResponseError ( `not a self custodial lighting wallet ${ walletId } ` , 400 ) ;
9090 }
@@ -145,7 +145,7 @@ export async function handleCreateSignerMacaroon(req: express.Request): Promise<
145145 }
146146 ) ;
147147
148- const wallet = await coin . wallets ( ) . get ( { id : walletId } ) ;
148+ const wallet = await coin . wallets ( ) . get ( { id : walletId , includeBalance : false } ) ;
149149 if ( wallet . subType ( ) !== 'lightningSelfCustody' ) {
150150 throw new ApiResponseError ( `not a self custodial lighting wallet ${ walletId } ` , 400 ) ;
151151 }
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export async function handleUpdateLightningWalletCoinSpecific(req: express.Reque
1717 ) ;
1818
1919 const coin = bitgo . coin ( req . params . coin ) ;
20- const wallet = await coin . wallets ( ) . get ( { id : req . params . id } ) ;
20+ const wallet = await coin . wallets ( ) . get ( { id : req . params . id , includeBalance : false } ) ;
2121
2222 return await updateWalletCoinSpecific ( wallet , params ) ;
2323}
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export interface GetWalletOptions {
2323 allTokens ?: boolean ;
2424 reqId ?: IRequestTracer ;
2525 id ?: string ;
26+ includeBalance ?: boolean ;
2627}
2728
2829export interface GenerateBaseMpcWalletOptions {
You can’t perform that action at this time.
0 commit comments