Properly declare errors in pallets that use decl_module (#8523)

* Properly declare errors in pallets that use decl_module

* Remove extra error type declaration
This commit is contained in:
Keith Yeung authored and GitHub committed 2021-04-03 22:06:25 +02:00
1 parent 35acdbc16f
commit b2db0ff881
3 files changed
+4 -1

No files matched your search

+2
View File
@@ -209,6 +209,8 @@ decl_error! {
decl_module! {
pub struct Module<T: Config> for enum Call where origin: T::Origin, system = frame_system {
type Error = Error<T>;
const ModuleId: ModuleId = T::ModuleId::get();
const MaxCalls: u32 = T::MaxCalls::get() as u32;