cardano-client-lib
cardano-client-lib copied to clipboard
Should contract output never be merged?
More a question than a bug.
I just tried to send to the same script address 10 utxo in one tx. Outputs have been merged by default. Which I didn't think/expect.
Should output sent to script never be merged?
Some options,
- leave it as is (but dev will learn the hard way!)
- never merge pay to contract address, and user has no control
- pay to contract accepts a flag allowMerge (set to false by default)
- update merge outputs method from being true/false, to accept an enum: mergeOutput(NO|PAYMENT_ADDRESS_ONLY|ALL)