Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 8677fd4

Browse files
committed
Correct style
1 parent 42ad8d5 commit 8677fd4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

substrate/runtime/contract/src/tests.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ fn contract_transfer_oog() {
244244
// 2 * 135 - base gas fee for call (by contract)
245245
100_000_000 - (2 * 6) - (2 * 135) - (2 * 135),
246246
);
247-
assert_eq!(Staking::free_balance(&1), 11,);
248-
assert_eq!(Staking::free_balance(&CONTRACT_SHOULD_TRANSFER_TO), 0,);
247+
assert_eq!(Staking::free_balance(&1), 11);
248+
assert_eq!(Staking::free_balance(&CONTRACT_SHOULD_TRANSFER_TO), 0);
249249
});
250250
}
251251

@@ -276,7 +276,7 @@ fn contract_transfer_max_depth() {
276276
// 2 * 135 * 100 - base gas fee for call (by transaction) multiplied by max depth (100).
277277
100_000_000 - (2 * 135 * 100) - (2 * 6 * 100),
278278
);
279-
assert_eq!(Staking::free_balance(&CONTRACT_SHOULD_TRANSFER_TO), 11,);
279+
assert_eq!(Staking::free_balance(&CONTRACT_SHOULD_TRANSFER_TO), 11);
280280
});
281281
}
282282

@@ -502,12 +502,12 @@ fn account_removal_removes_storage() {
502502
// Setup two accounts with free balance above than exsistential threshold.
503503
{
504504
Staking::set_free_balance(&1, 110);
505-
Staking::increase_total_stake_by(110);
505+
Staking::increase_total_stake_by(110);
506506
<StorageOf<Test>>::insert(1, b"foo".to_vec(), b"1".to_vec());
507507
<StorageOf<Test>>::insert(1, b"bar".to_vec(), b"2".to_vec());
508508

509509
Staking::set_free_balance(&2, 110);
510-
Staking::increase_total_stake_by(110);
510+
Staking::increase_total_stake_by(110);
511511
<StorageOf<Test>>::insert(2, b"hello".to_vec(), b"3".to_vec());
512512
<StorageOf<Test>>::insert(2, b"world".to_vec(), b"4".to_vec());
513513
}

0 commit comments

Comments
 (0)