File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { concatBytes } from 'micro-packed';
55
66import { getRunesClient } from '../../api' ;
77import { UTXO } from '../../types' ;
8- import { getBtcNetwork , getBtcNetworkDefinition , isInscriptionsAndRunesCompatible } from '../btcNetwork' ;
8+ import { getBtcNetworkDefinition , isInscriptionsAndRunesCompatible } from '../btcNetwork' ;
99import { InputToSign , TransactionContext } from './context' ;
1010import { ExtendedDummyUtxo , ExtendedUtxo } from './extendedUtxo' ;
1111import {
@@ -184,13 +184,14 @@ export class EnhancedPsbt {
184184 inputTxid : string ,
185185 knownEmptyTxids ?: string [ ] ,
186186 ) => {
187- if ( knownEmptyTxids && ! knownEmptyTxids . includes ( inputTxid ) ) {
187+ if ( ! knownEmptyTxids ? .includes ( inputTxid ) ) {
188188 const addressInput = await this . _context . getUtxoFallbackToExternal ( `${ inputTxid } :${ inputRaw . index } ` ) ;
189189 if ( addressInput && addressInput . extendedUtxo ) {
190190 return addressInput . extendedUtxo ;
191191 }
192192 }
193193
194+ // we know this UTXO won't exist, so we create a dummy one
194195 const utxo : UTXO = {
195196 txid : inputTxid ,
196197 vout : inputRaw . index ! ,
You can’t perform that action at this time.
0 commit comments