Switching off automatic creation of parties

Hello gents. I have a question and possibly a request. Currently sandbox creates missing parties automatically. Is there a switch to turn off this feature on sandbox? If not, can it be introduced?

We need it for proper testing, because on production system we won’t have automatic party creation feature. So in order for our tests to cover that part it needs to correspond to the production ledger functionality, i.e. no automatic party creation.

Thank you!

4 Likes

Hi, at the moment this is not possible unless you use Sandbox as an API and implement your own main class so you can change the config. I’ve opened https://github.com/digital-asset/daml/issues/5557 to expose this as a CLI option.

3 Likes

Sandbox (but not sandbox-classic) now has an option --implicit-party-allcation=false that you can use to disable implicit party allocation. This will be included in the next release.

1 Like