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

Commit

Permalink
Correct style
Browse files Browse the repository at this point in the history
  • Loading branch information
pepyakin committed Aug 27, 2018
1 parent 42ad8d5 commit 8677fd4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions substrate/runtime/contract/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ fn contract_transfer_oog() {
// 2 * 135 - base gas fee for call (by contract)
100_000_000 - (2 * 6) - (2 * 135) - (2 * 135),
);
assert_eq!(Staking::free_balance(&1), 11,);
assert_eq!(Staking::free_balance(&CONTRACT_SHOULD_TRANSFER_TO), 0,);
assert_eq!(Staking::free_balance(&1), 11);
assert_eq!(Staking::free_balance(&CONTRACT_SHOULD_TRANSFER_TO), 0);
});
}

Expand Down Expand Up @@ -276,7 +276,7 @@ fn contract_transfer_max_depth() {
// 2 * 135 * 100 - base gas fee for call (by transaction) multiplied by max depth (100).
100_000_000 - (2 * 135 * 100) - (2 * 6 * 100),
);
assert_eq!(Staking::free_balance(&CONTRACT_SHOULD_TRANSFER_TO), 11,);
assert_eq!(Staking::free_balance(&CONTRACT_SHOULD_TRANSFER_TO), 11);
});
}

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

Staking::set_free_balance(&2, 110);
Staking::increase_total_stake_by(110);
Staking::increase_total_stake_by(110);
<StorageOf<Test>>::insert(2, b"hello".to_vec(), b"3".to_vec());
<StorageOf<Test>>::insert(2, b"world".to_vec(), b"4".to_vec());
}
Expand Down

0 comments on commit 8677fd4

Please sign in to comment.