holochain
holochain copied to clipboard
Provenance not found in `zome_info`
The provenance of the caller of the function that is executing is not found in zome_info
, or anywhere else as far as I can see.
Hmm... yes... Good point, we should make the calling context available for the current zome call.
And also, in a bridged call
, it would be potentially very useful to know the hash of the "caller DNA", and I think this is possible as far as the conductor goes. What do you think?
@guillemcordoba Is this issue still something that should be looked at?
No, this is solved by call_info
, although now that I see the docs they say "Trivial wrapper for __agent_info host function", and that alarms me. The provenance of who called the zome function is definitely not always the same as the agent info, for example in a bridge call across apps. So I would close this issue if:
- If the docs are wrong, the docs are fixed.
- If the docs are right and
call_info
is just a wrapper around agent_info, a proper way of getting the caller provenance is implemented.
This item has been open for 30 days with no activity.
This item has been open for 30 days with no activity.
This item has been open for 30 days with no activity.
This item has been open for 30 days with no activity.
@guillemcordoba Looks like it's 1.
, the docs have been copy/pasted from agent_info()
and it didn't get caught until here. I think the code is correct and tested, aside from a problem with bridged calls that will need fixing separately