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

Commit a58a6e5

Browse files
committed
Correct style
1 parent bf6f02f commit a58a6e5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

substrate/runtime/contract/src/tests.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ fn contract_transfer_oog() {
246246
// 2 * 135 - base gas fee for call (by contract)
247247
100_000_000 - (2 * 6) - (2 * 135) - (2 * 135),
248248
);
249-
assert_eq!(Staking::free_balance(&1), 11,);
250-
assert_eq!(Staking::free_balance(&CONTRACT_SHOULD_TRANSFER_TO), 0,);
249+
assert_eq!(Staking::free_balance(&1), 11);
250+
assert_eq!(Staking::free_balance(&CONTRACT_SHOULD_TRANSFER_TO), 0);
251251
});
252252
}
253253

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

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

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

0 commit comments

Comments
 (0)