How does a party view a contract he is witness at, and how does a divulge happens?
App Development2 posts191 viewsLast activity Dec 2022
CO
cohen.avrahamOP
Dec 2022G-d willing
Hello,
Assuming I have the following templates:
template AnotherTest
with
party1 : Party
party2 : Party
where
signatory party1, party2
template Test
with
party1 : Party
party2 : Party
party3 : Party
where
signatory party1, party2, party3
nonconsuming choice NewTest : ContractId AnotherTest
controller party1
do
create AnotherTest with ..
When party1 is exercising the NewTest choice, AnotherTest contract is created, however, party3 is a witness to it.

But how can party3 see it?
In addition, let’s say I update the AnotherTest template to the following:
template AnotherTest
with
party1 : Party
party2 : Party
where
signatory party1, party2
nonconsuming choice NewestTest : ContractId AnotherNewTest
controller party2
do
create AnotherNewTest with ..
template AnotherNewTest
with
party2 : Party
where
signatory party2
So, now the result is:

In this case, how does a divulge appears to be visible to a contract? And how it can view it?
Thanks,
A_
a_putkov
Dec 2022@cohen.avraham
I think you’ll find the answer in the post I just submitted on another thread. Let me know otherwise.