ckb-cell / rgbpp-sdk

Utilities for Bitcoin and RGB++ asset integration
ISC License
53 stars 16 forks source link

fix(btc): error message when reporting INSUFFICIENT_UTXO #136

Closed ShookLyngs closed 4 months ago

ShookLyngs commented 4 months ago

Changes

  1. Add an allowInsufficient option (set to true by default) to the DataSource.collectSatoshi() API to allow the collection process to be completed when the balance of the target address is insufficient, instead of throwing the INSUFFICIENT_UTXO error
  2. Fix the expected amount of error when collected satoshi and the balance of the target address are both insufficient for a change output to be generated in the transaction (reported by @Dawn-githup)
Dawn-githup commented 4 months ago

https://inquisitive-puma-8a7.notion.site/error-message-when-reporting-INSUFFICIENT_UTXO-verify-3cebd9c87be54298805f6bfa5106342e