Skip to content

Commit

Permalink
fmt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
agryaznov committed Jun 21, 2022
1 parent 2e59a8e commit c582cff
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 38 deletions.
84 changes: 48 additions & 36 deletions client/basic-authorship/src/basic_authorship.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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 =
Expand Down Expand Up @@ -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);

Expand All @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions frame/contracts/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ impl<Client, Block, AccountId, Balance, Hash>
<<Block as BlockT>::Header as HeaderT>::Number,
AccountId,
Balance,
Hash,
VarSizedKey,
Hash,
VarSizedKey,
> for Contracts<Client, Block>
where
Block: BlockT,
Expand Down

0 comments on commit c582cff

Please sign in to comment.