cardano-client-lib icon indicating copy to clipboard operation
cardano-client-lib copied to clipboard

Should contract output never be merged?

Open nemo83 opened this issue 5 months ago • 1 comments

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)

nemo83 avatar Sep 14 '24 06:09 nemo83