diff --git a/client/basic-authorship/src/basic_authorship.rs b/client/basic-authorship/src/basic_authorship.rs index b67008bc6f44b..d9fe82070fa5a 100644 --- a/client/basic-authorship/src/basic_authorship.rs +++ b/client/basic-authorship/src/basic_authorship.rs @@ -625,12 +625,14 @@ mod tests { .unwrap(); block_on( - txpool.maintain(chain_event( - client - .header(&BlockId::Number(0u64)) - .expect("header get error") - .expect("there should be header"), - )), + txpool.maintain( + chain_event( + client + .header(&BlockId::Number(0u64)) + .expect("header get error") + .expect("there should be header"), + ), + ), ); let mut proposer_factory = @@ -720,12 +722,14 @@ mod tests { block_on(txpool.submit_at(&BlockId::number(0), SOURCE, vec![extrinsic(0)])).unwrap(); block_on( - txpool.maintain(chain_event( - client - .header(&BlockId::Number(0u64)) - .expect("header get error") - .expect("there should be header"), - )), + txpool.maintain( + chain_event( + client + .header(&BlockId::Number(0u64)) + .expect("header get error") + .expect("there should be header"), + ), + ), ); let mut proposer_factory = @@ -821,12 +825,14 @@ mod tests { }; block_on( - txpool.maintain(chain_event( - client - .header(&BlockId::Number(0u64)) - .expect("header get error") - .expect("there should be header"), - )), + txpool.maintain( + chain_event( + client + .header(&BlockId::Number(0u64)) + .expect("header get error") + .expect("there should be header"), + ), + ), ); assert_eq!(txpool.ready().count(), 7); @@ -835,12 +841,14 @@ mod tests { block_on(client.import(BlockOrigin::Own, block)).unwrap(); block_on( - txpool.maintain(chain_event( - client - .header(&BlockId::Number(1)) - .expect("header get error") - .expect("there should be header"), - )), + txpool.maintain( + chain_event( + client + .header(&BlockId::Number(1)) + .expect("header get error") + .expect("there should be header"), + ), + ), ); assert_eq!(txpool.ready().count(), 5); @@ -965,12 +973,14 @@ mod tests { .unwrap(); block_on( - txpool.maintain(chain_event( - client - .header(&BlockId::Number(0u64)) - .expect("header get error") - .expect("there should be header"), - )), + txpool.maintain( + chain_event( + client + .header(&BlockId::Number(0u64)) + .expect("header get error") + .expect("there should be header"), + ), + ), ); assert_eq!(txpool.ready().count(), MAX_SKIPPED_TRANSACTIONS * 3); @@ -1028,12 +1038,14 @@ mod tests { .unwrap(); block_on( - txpool.maintain(chain_event( - client - .header(&BlockId::Number(0u64)) - .expect("header get error") - .expect("there should be header"), - )), + txpool.maintain( + chain_event( + client + .header(&BlockId::Number(0u64)) + .expect("header get error") + .expect("there should be header"), + ), + ), ); assert_eq!(txpool.ready().count(), MAX_SKIPPED_TRANSACTIONS * 2 + 2); diff --git a/frame/contracts/rpc/src/lib.rs b/frame/contracts/rpc/src/lib.rs index 63ab4102422e5..b72ae395b336a 100644 --- a/frame/contracts/rpc/src/lib.rs +++ b/frame/contracts/rpc/src/lib.rs @@ -192,8 +192,8 @@ impl <::Header as HeaderT>::Number, AccountId, Balance, - Hash, - VarSizedKey, + Hash, + VarSizedKey, > for Contracts where Block: BlockT,