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

Commit 72ba19b

Browse files
committed
Correct style
1 parent 51d30a2 commit 72ba19b

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
@@ -248,8 +248,8 @@ fn contract_transfer_oog() {
248248
// 2 * 135 - base gas fee for call (by contract)
249249
100_000_000 - (2 * 6) - (2 * 135) - (2 * 135),
250250
);
251-
assert_eq!(Staking::free_balance(&1), 11,);
252-
assert_eq!(Staking::free_balance(&CONTRACT_SHOULD_TRANSFER_TO), 0,);
251+
assert_eq!(Staking::free_balance(&1), 11);
252+
assert_eq!(Staking::free_balance(&CONTRACT_SHOULD_TRANSFER_TO), 0);
253253
});
254254
}
255255

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

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

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

0 commit comments

Comments
 (0)