Closed AnthonyMikh closed 2 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
primitives/src/currency.rs | 13 | 34 | 38.24% | ||
<!-- | Total: | 13 | 34 | 38.24% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
primitives/src/currency.rs | 2 | 21.97% | ||
<!-- | Total: | 2 | --> |
Totals | |
---|---|
Change from base Build 1481469308: | -4.9% |
Covered Lines: | 111 |
Relevant Lines: | 209 |
This changes code to use a macro which enables easily adding new variants of currencies over time and excludes the possibility of mismatching variants in impls. Also new macro statically ensures that byte string identifiers ascipted to variants conform their respective names.
Closes #137