piecrust icon indicating copy to clipboard operation
piecrust copied to clipboard

Make it possible for a `HostQuery` to use a `Session`

Open ureeves opened this issue 1 year ago • 0 comments

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.

ureeves avatar Feb 10 '24 01:02 ureeves