mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 14:01:02 +00:00
Make constants exposable in metadata (#2975)
* Some cleanup * Add module constant metadata declaration * Begin to integrate the constants in `decl_module` * Fixes tests * Fix compilation and add tests * Remove duplicate code * Expose constants in democracy and staking + further fixes * Update srml/metadata/src/lib.rs Co-Authored-By: YJ <yjkimjunior@gmail.com> * Hide `RawEvent` metadata function * Prevent whitespaces in types * Fix `offchain_worker` and `constants` with instances * Up the `impl_version` * Fix macro * Incrase impl_version
This commit is contained in:
@@ -497,9 +497,7 @@ mod tests {
|
||||
author_a,
|
||||
);
|
||||
|
||||
assert!(
|
||||
Authorship::verify_and_import_uncles(vec![uncle_a.clone()]).is_ok()
|
||||
);
|
||||
assert!(Authorship::verify_and_import_uncles(vec![uncle_a.clone()]).is_ok());
|
||||
|
||||
assert_eq!(
|
||||
Authorship::verify_and_import_uncles(vec![uncle_a.clone()]),
|
||||
@@ -549,9 +547,7 @@ mod tests {
|
||||
author_a,
|
||||
);
|
||||
|
||||
assert!(
|
||||
Authorship::verify_and_import_uncles(vec![other_8]).is_ok()
|
||||
);
|
||||
assert!(Authorship::verify_and_import_uncles(vec![other_8]).is_ok());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user