Refactor XCM code #7095
Labels
C1-mentor
A task where a mentor is available. Please indicate in the issue who the mentor could be.
C2-good-first-issue
A task for a first time contributor to become familiar with the Polkadot-SDK.
T6-XCM
This PR/Issue is related to XCM.
Currently XCM code are not implement in an extendable way. To make a new version, we have to duplicate many files and then modify on the duplicated files. This comes with many issues:
We should refactor it in such way to avoid duplications.
For example, instead of a big
enum Instruction
, we have a struct for each instruction and use some macro to generation the big enum. In that way, to add new instruction, we only need to add new instruction and update the instruction list.The text was updated successfully, but these errors were encountered: