You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
The weight template currently outputs something like (x as Weight) which is semantically not very clear.
Changing this to (x * constants::WEIGHT_PER_NANOS) with the correct units would be much better.
One possible approach:
Write a function that correctly formats the weight, eg. 38_000_000 becomes 38_000 * WEIGHT_PER_NANOS
PS: Better call this function directly from the template
WEIGHT_PER_NANOS is probably the only one that we can use, as it would otherwise use float point multiplication.