# How does a party view a contract he is witness at, and how does a divulge happens?

**URL:** <https://forum.canton.network/t/how-does-a-party-view-a-contract-he-is-witness-at-and-how-does-a-divulge-happens/5852>\
**Category:** App Development\
**Tags:** daml\
**Created:** [December 20, 2022, 10:17pm UTC](https://forum.canton.network/t/how-does-a-party-view-a-contract-he-is-witness-at-and-how-does-a-divulge-happens/5852 "2022-12-20T22:17:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cohen.avraham](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@cohen.avraham](https://forum.canton.network/u/cohen.avraham)\
**Post date:** [December 20, 2022, 10:17pm UTC](https://forum.canton.network/t/how-does-a-party-view-a-contract-he-is-witness-at-and-how-does-a-divulge-happens/5852/1 "2022-12-20T22:17:04Z")

</div>

G-d willing

Hello,  
Assuming I have the following templates:

```haskell
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.  
 ![image](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/d/d2a756a7c32d96a5da9fc39448a794ee73c6152b.png)

But how can `party3` see it?

In addition, let’s say I update the `AnotherTest` template to the following:

```haskell
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:  
 ![image](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/b/b4e0bb50f31ed80d0d88e49bf54814a69afb6613.png)

In this case, how does a divulge appears to be visible to a contract? And how it can view it?

Thanks,

---

<div class="post-metadata">

**Author:** ![a\_putkov](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/a_putkov/32/2971_2.png) [@a\_putkov](https://forum.canton.network/u/a_putkov)\
**Post date:** [December 20, 2022, 11:05pm UTC](https://forum.canton.network/t/how-does-a-party-view-a-contract-he-is-witness-at-and-how-does-a-divulge-happens/5852/2 "2022-12-20T23:05:36Z")

</div>

@cohen.avraham  
I think you’ll find the answer in the post I just submitted on [another thread](https://discuss.daml.com/t/what-are-the-differences-between-observer-witness-and-divulge/5846). Let me know otherwise.
