piecrust
piecrust copied to clipboard
Make it possible for a `HostQuery` to use a `Session`
Summary
It should be possible for host functions to call contracts during execution of a program. This will allow for downstream to move all the logic of the transfer contract to outside of the WASM binary and maintain the same level of atomicity.
Possible solution design or implementation
In the definition of a HostQuery
add a &mut Session
parameter and flow from there.
Additional context
This is important to allow for moving the genesis contracts to host functions.