open-runtime-module-library icon indicating copy to clipboard operation
open-runtime-module-library copied to clipboard

Token errors should specify CurrencyId

Open gregdhill opened this issue 3 years ago • 1 comments

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).

gregdhill avatar Jun 08 '22 13:06 gregdhill

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

xlc avatar Jun 08 '22 22:06 xlc