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';
5
5
6
6
import { getRunesClient } from '../../api' ;
7
7
import { UTXO } from '../../types' ;
8
- import { getBtcNetwork , getBtcNetworkDefinition , isInscriptionsAndRunesCompatible } from '../btcNetwork' ;
8
+ import { getBtcNetworkDefinition , isInscriptionsAndRunesCompatible } from '../btcNetwork' ;
9
9
import { InputToSign , TransactionContext } from './context' ;
10
10
import { ExtendedDummyUtxo , ExtendedUtxo } from './extendedUtxo' ;
11
11
import {
@@ -184,13 +184,14 @@ export class EnhancedPsbt {
184
184
inputTxid : string ,
185
185
knownEmptyTxids ?: string [ ] ,
186
186
) => {
187
- if ( knownEmptyTxids && ! knownEmptyTxids . includes ( inputTxid ) ) {
187
+ if ( ! knownEmptyTxids ? .includes ( inputTxid ) ) {
188
188
const addressInput = await this . _context . getUtxoFallbackToExternal ( `${ inputTxid } :${ inputRaw . index } ` ) ;
189
189
if ( addressInput && addressInput . extendedUtxo ) {
190
190
return addressInput . extendedUtxo ;
191
191
}
192
192
}
193
193
194
+ // we know this UTXO won't exist, so we create a dummy one
194
195
const utxo : UTXO = {
195
196
txid : inputTxid ,
196
197
vout : inputRaw . index ! ,
You can’t perform that action at this time.
0 commit comments