diff --git a/src/app/pages/send/ordinal-inscription/coinselect/select-inscription-coins.spec.ts b/src/app/pages/send/ordinal-inscription/coinselect/select-inscription-coins.spec.ts index 67978daf466..0a66c13d460 100644 --- a/src/app/pages/send/ordinal-inscription/coinselect/select-inscription-coins.spec.ts +++ b/src/app/pages/send/ordinal-inscription/coinselect/select-inscription-coins.spec.ts @@ -37,7 +37,7 @@ describe(selectTaprootInscriptionTransferCoins.name, () => { Number(inscriptionInputAmount) ); - expect(result.txFee).toEqual(5048); + expect(result.txFee).toEqual(6608); }); test('when there are not enough utxo to cover fee', () => { diff --git a/src/app/pages/send/ordinal-inscription/coinselect/select-inscription-coins.ts b/src/app/pages/send/ordinal-inscription/coinselect/select-inscription-coins.ts index 51ac5736e97..eab76a0ca44 100644 --- a/src/app/pages/send/ordinal-inscription/coinselect/select-inscription-coins.ts +++ b/src/app/pages/send/ordinal-inscription/coinselect/select-inscription-coins.ts @@ -37,10 +37,11 @@ export function selectTaprootInscriptionTransferCoins( const txSizer = new BtcSizeFeeEstimator(); const initialTxSize = txSizer.calcTxSize({ - input_script: 'p2tr', + input_script: 'p2wpkh', input_count: 1, // From the address of the recipient, we infer the output type p2tr_output_count: 1, + p2wpkh_output_count: 1, }); const neededInputs: UtxoResponseItem[] = []; @@ -65,9 +66,10 @@ export function selectTaprootInscriptionTransferCoins( if (nextUtxo) neededInputs.push(nextUtxo); utxos = remainingUtxos; txSize = txSizer.calcTxSize({ - input_script: 'p2tr', + input_script: 'p2wpkh', input_count: neededInputs.length + 1, p2tr_output_count: 1, + p2wpkh_output_count: 1, }); indexCounter.increment(); } diff --git a/src/app/pages/send/ordinal-inscription/hooks/use-generate-ordinal-tx.ts b/src/app/pages/send/ordinal-inscription/hooks/use-generate-ordinal-tx.ts index cff9efcdab6..7a7258f003a 100644 --- a/src/app/pages/send/ordinal-inscription/hooks/use-generate-ordinal-tx.ts +++ b/src/app/pages/send/ordinal-inscription/hooks/use-generate-ordinal-tx.ts @@ -104,7 +104,7 @@ export function useGenerateUnsignedOrdinalTx(inscriptionInput: UtxoWithDerivatio if (e instanceof InsufficientFundsError) { throw new InsufficientFundsError(); } - logger.error('Unable to sign transaction'); + logger.error('Unable to sign transaction', e); return null; } } @@ -159,7 +159,7 @@ export function useGenerateUnsignedOrdinalTx(inscriptionInput: UtxoWithDerivatio if (e instanceof InsufficientFundsError) { throw new InsufficientFundsError(); } - logger.error('Unable to sign transaction'); + logger.error('Unable to sign transaction', e); return null; } }