This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Allow explicit call ordering within a pallet #10408
Labels
J0-enhancement
An additional feature request.
Similar to explicit ordering in the
construct_runtime
macro, we could annotate calls within a pallet with an index. This would have a few advantages, namely the ability to remove a function without affecting the indices of other calls.This could be useful in pallet versioning and transaction version, where a pallet's version would need to increment when there is a breaking change to these indices/function signatures. By leaving call indices empty on function removal, wallets/signers don't need to worry about signing an unintended call as it would be null.
Transaction version could either increment on pallet version changes or be reserved for changes in the serialization (e.g. signed extensions).
The text was updated successfully, but these errors were encountered: