More tests fixed.

This commit is contained in:
Gav
2018-02-07 16:18:20 +01:00
parent 89d8686883
commit 4f15a6d488
5 changed files with 6 additions and 8 deletions
@@ -168,7 +168,6 @@ mod tests {
use super::*;
use codec::Slicable;
use substrate_serializer as ser;
use primitives::hexdisplay::HexDisplay;
#[test]
fn test_header_serialization() {
@@ -286,10 +286,6 @@ pub struct Transaction {
impl Slicable for Transaction {
fn from_slice(value: &mut &[u8]) -> Option<Self> {
// This is a little more complicated than usua since the binary format must be compatible
// with substrate's generic `Vec<u8>` type. Basically this just means accepting that there
// will be a prefix of u32, which has the total number of bytes following (we don't need
// to use this).
Some(Transaction {
signed: try_opt!(Slicable::from_slice(value)),
nonce: try_opt!(Slicable::from_slice(value)),