SrcLocPackage Meaning

Hello good morning. I just want to ask where does the value “main” from srcLocPackage = “main”; come from when we use the getCallStack method since I’m having a hard time finding it within the source code. Thanks!

2 Likes

In DAML Studio main refers to the current package. Outside of DAML Studio of for other packages, srcLocPackage will give you the name of the package the module was in.

2 Likes

Thanks! @cocreature

1 Like