File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
modules/sdk-core/src/bitgo/pendingApproval Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
*/
4
4
import * as _ from 'lodash' ;
5
5
import * as common from '../../common' ;
6
+ import * as utxolib from '@bitgo/utxo-lib' ;
6
7
import { IBaseCoin } from '../baseCoin' ;
7
8
import { BitGoBase } from '../bitgoBase' ;
8
9
import {
@@ -183,9 +184,9 @@ export class PendingApproval implements IPendingApproval {
183
184
const recipients = this . info ( ) ?. transactionRequest ?. buildParams ?. recipients || [ ] ;
184
185
const type = this . info ( ) ?. transactionRequest ?. buildParams ?. type ;
185
186
186
- // We only want to not recreate transactions with no recipients if it is an UTXO coin.
187
- // There is no easy way to do this in sdk-core, but `network` is only set on UTXO coins.
188
- if ( 'network' in this . baseCoin && recipients . length === 0 && type !== 'consolidate' ) {
187
+ // We only want to not recreate transactions with no recipients if it is a UTXO coin.
188
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
189
+ if ( utxolib . isValidNetwork ( ( this . baseCoin as any ) . network ) && recipients . length === 0 && type !== 'consolidate' ) {
189
190
canRecreateTransaction = false ;
190
191
}
191
192
You can’t perform that action at this time.
0 commit comments