@onekeyfe/cardano-coin-selection-asmjs 1.1.10-alpha.6 → 1.1.10-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -189,6 +189,20 @@ const convertCborTxToEncodeTx = async ({ txHex, utxos, addresses, changeAddress,
189
189
  // All valid transactions must have at least one output
190
190
  // Empty outputs means insufficient funds to cover the transaction
191
191
  if (outputsLen === 0) {
192
+ console.log('[convertCborTxToEncodeTx] Empty outputs detected, transaction data:', {
193
+ fee,
194
+ totalFeeInNative,
195
+ inputsCount: inputsLen,
196
+ inputs: inputs,
197
+ matchedUtxos: encodeInputs.map(u => ({
198
+ tx_hash: u.tx_hash,
199
+ tx_index: u.tx_index,
200
+ amount: u.amount,
201
+ })),
202
+ isStakingTx,
203
+ certificates,
204
+ poolId,
205
+ });
192
206
  throw new errors_1.CoinSelectionError(constants_1.ERROR.UTXO_BALANCE_INSUFFICIENT);
193
207
  }
194
208
  for (let i = 0; i < outputsLen; i++) {
@@ -159,6 +159,20 @@ const convertCborTxToEncodeTx = async ({ txHex, utxos, addresses, changeAddress,
159
159
  // All valid transactions must have at least one output
160
160
  // Empty outputs means insufficient funds to cover the transaction
161
161
  if (outputsLen === 0) {
162
+ console.log('[convertCborTxToEncodeTx] Empty outputs detected, transaction data:', {
163
+ fee,
164
+ totalFeeInNative,
165
+ inputsCount: inputsLen,
166
+ inputs: inputs,
167
+ matchedUtxos: encodeInputs.map(u => ({
168
+ tx_hash: u.tx_hash,
169
+ tx_index: u.tx_index,
170
+ amount: u.amount,
171
+ })),
172
+ isStakingTx,
173
+ certificates,
174
+ poolId,
175
+ });
162
176
  throw new CoinSelectionError(ERROR.UTXO_BALANCE_INSUFFICIENT);
163
177
  }
164
178
  for (let i = 0; i < outputsLen; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/cardano-coin-selection-asmjs",
3
- "version": "1.1.10-alpha.6",
3
+ "version": "1.1.10-alpha.7",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "coin selection"