ref-fvm
ref-fvm copied to clipboard
Add an integration test that defines a new syscall
Basically, we need to make sure we can attach a new syscall to an FVM instance from a different crate. We should write an integration test that:
- Constructs a custom FVM with a custom kernel/syscall.
- Calls the custom syscall from an actor.
@Stebalien for making the new custom syscall (for example math::doubleme) available to the wasm actor, I am thinking about creating a new crate containing the custom kernel and syscall, then in the wasm test actor, import that syscall module which I can then call to invoke the custom syscall, makes sense?
There's nothing special about the SDK (it's just a crate). You should be able to put that code inside your custom actor itself.