adding srml_system::CheckVersion to SignedExtra in tests in lib.rs. (#11)

Signed-off-by: daogangtang <daogangtang@gmail.com>
This commit is contained in:
Daogang Tang
2019-08-23 23:32:44 +08:00
committed by Andrew Jones
parent d46b6a975e
commit 8a338f6c3f
+2
View File
@@ -413,6 +413,7 @@ mod tests {
type Event = <node_runtime::Runtime as srml_system::Trait>::Event;
type SignedExtra = (
srml_system::CheckVersion<node_runtime::Runtime>,
srml_system::CheckGenesis<node_runtime::Runtime>,
srml_system::CheckEra<node_runtime::Runtime>,
srml_system::CheckNonce<node_runtime::Runtime>,
@@ -421,6 +422,7 @@ mod tests {
);
fn extra(nonce: Self::Index) -> Self::SignedExtra {
(
srml_system::CheckVersion::<node_runtime::Runtime>::new(),
srml_system::CheckGenesis::<node_runtime::Runtime>::new(),
srml_system::CheckEra::<node_runtime::Runtime>::from(Era::Immortal),
srml_system::CheckNonce::<node_runtime::Runtime>::from(nonce),