Party allocation in `create-daml-app`
- Phoebe_NicholsOP 2
I’m having a look at the
create-daml-appexample from the getting started guideDoes this example do party allocation from the React code? I can’t see it myself.
- If it does, would someone point me at the code?
- If not, where are the parties allocated? Does the Sandbox automatically allocate parties or something?
Thank you!

- cocreature 3
Sandbox implicitly allocates a party when it is referenced the first time.
create-daml-apprelies on this behavior so it never explicitly allocates parties. If you run on a ledger that does not allocate parties implicitly, you have to allocate them upfront, e.g., usingdaml ledger allocate-partyor DAML Script. - Phoebe_Nichols 1
that explains it, thank you!
- stefanobaghino-da 2
In particular, note that:
sandbox-classic(the pre-1.0 version ofsandboxwhich was not based on the same architecture as other ledgers) always allocates party implicitly, whereas insandbox, even though implicit party allocation is turned on by default, it can be turned off by passing--implicit-party-allocation=falseon the CLI. This can be useful in integration tests to make sure that everything works as expected in a “production-like” environment, where parties are unlikely to be allocated implicitly. - Luciano
Hey Phoebe! I ran this on a 3rd-party ledger yesterday, and found that using
daml deploywill do the party allocation and *.dar upload in a single step. - georg
Based on what you have in your
daml.yaml, that is.