Fix MultiSigner, simplify tests (#2033)

* Fix MultiSigner, use `into_signed_tx`

* Rebuild.
This commit is contained in:
Tomasz Drwięga authored and Gavin Wood committed 2019-04-23 17:18:32 +01:00
1 parent b483c5608f
commit 08fda211d8
16 files changed
+101 -46

No files matched your search

@@ -291,7 +291,6 @@ impl<Block, C, A> Proposer<Block, C, A> where
mod tests {
use super::*;
use codec::Encode;
use std::cell::RefCell;
use consensus_common::{Environment, Proposer};
use test_client::{self, runtime::{Extrinsic, Transfer}, AccountKeyring};
@@ -303,8 +302,7 @@ mod tests {
from: AccountKeyring::Alice.into(),
to: Default::default(),
};
let signature = AccountKeyring::from_public(&tx.from).unwrap().sign(&tx.encode()).into();
Extrinsic::Transfer(tx, signature)
tx.into_signed_tx()
}
#[test]