open-runtime-module-library
open-runtime-module-library copied to clipboard
Token errors should specify CurrencyId
Some of the errors in orml_tokens::Error could specify the CurrencyId to narrow the source of error. For example, BalanceTooLow could be a tuple variant BalanceTooLow(T::CurrencyId).
Additional error payload can only be up to 4 bytes and we can't restrict the max size of CurrencyId
https://github.com/paritytech/substrate/pull/10242