Remove sender from Applyable. (#5129)

This commit is contained in:
Gavin Wood
2020-03-05 13:39:45 +01:00
committed by GitHub
parent ab58a08a53
commit 7177ad5cf0
4 changed files with 2 additions and 16 deletions
@@ -410,12 +410,9 @@ impl<Origin, Call, Extra, Info> Applyable for TestXt<Call, Extra> where
Origin: From<Option<u64>>,
Info: Clone,
{
type AccountId = u64;
type Call = Call;
type DispatchInfo = Info;
fn sender(&self) -> Option<&Self::AccountId> { self.signature.as_ref().map(|x| &x.0) }
/// Checks to see if this is a valid *transaction*. It returns information on it if so.
fn validate<U: ValidateUnsigned<Call=Self::Call>>(
&self,