Make impl_outer_inherent do not require Extrinsic to be imported (#1526)

This commit is contained in:
Bastian Köcher
2019-01-23 13:41:14 +01:00
committed by GitHub
parent 70b1af7b1e
commit ac065a96ba
+2 -2
View File
@@ -17,7 +17,7 @@
#[doc(hidden)]
pub use rstd::vec::Vec;
#[doc(hidden)]
pub use runtime_primitives::traits::Block as BlockT;
pub use runtime_primitives::traits::{Block as BlockT, Extrinsic};
#[doc(hidden)]
pub use inherents::{InherentData, ProvideInherent, CheckInherentsResult, IsFatalError};
@@ -74,7 +74,7 @@ macro_rules! impl_outer_inherent {
let mut result = $crate::inherent::CheckInherentsResult::new();
for xt in block.extrinsics() {
if xt.is_signed().unwrap_or(false) {
if $crate::inherent::Extrinsic::is_signed(xt).unwrap_or(false) {
break;
}