zeitgeist
zeitgeist copied to clipboard
Define proper XCM Transact call filter
Implement a custom call filter that implements Contains
that will be used for XcmConfig
's configuration value SafeCallFilter
. The call filter should only return true
only for calls that meet the following conditions:
- Don't lead to recursion
- Have a fixed weight
- Cannot lead to another call being made (i.e. utility)
- Have a defined proof size weight, e.g. no unbounded vecs in call parameters.
for all other calls, return false
.