3

Disc: I know about the existence of ChainExtension feature. Here I would like to ask about the other way.

There is this CallFilter thing in Config for pallet-contracts and IIUC it defines what kind of runtime calls I can do from within the contract. In all examples I saw, it is set to Nothing. Let's suppose I set it to Everything - what kind of runtime calls I can then do from a contract? Where can I find an example how to do that?

1 Answer 1

2

This will allow a contract to call every dispatchable of every pallet just as any off chain actor could do by submitting an extrinsic. See the documentation of seal_call_runtime for more information.

Please note that this functionality is currently flagged unstable and therefore not to be used in production, yet. It is unclear whether the functionality is actually useful it its current form. There is also no support within ink!, yet. Hence I don't know of any example.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.