I have defined a custom object:
data CustomObj = CustomObj with name : Party age : Int deriving(Eq, Show)
And my contract template is:
template MyContract with owner : Party customObjList : [CustomObj] where signatory owner observer //here I need a list of CustomObj.name
I want to extract the name field from each object of the customObjList. Make a list of these names and use it as the list of observers. How can I achieve that.