@vbyte/btc-dev 1.0.12 → 1.0.13

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.
package/dist/module.mjs CHANGED
@@ -13717,9 +13717,9 @@ function create_tx_output(config) {
13717
13717
  const value = normalize_value(config.value);
13718
13718
  return { script_pk, value };
13719
13719
  }
13720
- function create_tx(config = {}) {
13720
+ function create_tx(config) {
13721
13721
  assert_tx_template(config);
13722
- const { vin = [], vout = [] } = config;
13722
+ const { vin = [], vout = [] } = config ?? { vin: [], vout: [] };
13723
13723
  const locktime = config.locktime ?? DEFAULT.LOCKTIME;
13724
13724
  const version = config.version ?? DEFAULT.VERSION;
13725
13725
  const inputs = vin.map(txin => create_tx_input(txin));