Abstract CustomMetadata & CurrencyId to avoid usage in tests #1770
Labels
I4-tests
Test needs fixing or improving.
I6-refactoring
Code needs refactoring.
I11-cleaning
No mandatory issue that leave the repo more readable/organized
P2-nice-to-have
Issue is worth doing.
Q5-hard
Can be done by an experienced coder with a good knowledge of the codebase.
Description
Currently, we use our runtime type
CustomMetadata
in most of our tests. This forces us to have a runtime dependency in pallets, making it harder to do refactorizations and test simplifications. Also, it forces us to use our specificCurrencyId
in tests. Populating the tests even with more runtime types when we shouldn't.We should abstract
CustomMetadata
andCurrencyId
(with their subtypes) with some traits to avoid their usage in pallet tests. This helps go towards runtime-free dependencies architecture (see #1380)The text was updated successfully, but these errors were encountered: