mesch
1
I return the contractId of the new contract from a consuming choice. This contract ID is returned from create this ...
.
For uniformity, sometimes I would like to return the contract ID also from a nonconsuming choice.
How do I obtain the contract ID of the contract whose choice is currently executing?
Thanks a lot,
mesch.
1 Like
There is self
which gives you access to the contract id of the current contract similar to how this
gives you access to the contract payload.
@cocreature where is the use of ‘this’ and ‘self’ documented?
They’re mentioned in the template reference, but I suppose that could be expanded quite a bit.
I was able to find references in the docs that the keywords exist. But there does not seem to be any explanation of what the keywords do / contain