Open reginleif888 opened 8 months ago
If we move the definition of ExampleClass
inside the agent
actor then it works (not surprising).
Would be nice to get this fixed in the interpreter.
Yeah, that looks like a bug. Thanks for reporting it! I would regard this as low priority, since the IC doesn't support multiple actors in the same canister.
How important is the fix to you?
It's low priority. Thanks!
Problem statement: The interpreter determines the caller incorrectly if the call is made not from the actor directly, but inside the object that the actor uses. In a call made from an object, the caller is always ID:0
Command used:
moc -r
Motoko version: 0.11.1
Code:
Actual output:
Expected output: