Open gui1117 opened 3 years ago
Indeed, we need this. There are too many such duplicated code.
@kianenigma Could you draft a simple "task list"? Where could be the best entry point to "inject" such run_to_block
logic?
I'd love to take this issue.
Currently there is very few provided function for doing some mocking of pallets.
People almost always implement some function like:
Those function are sometime incomplete implementation of state transition.
I think maybe we can make use of frame_executive::Executive in tests, or provide some helper to avoid having to implement those function everywhere.