chore: fix typos (#8013)

This commit is contained in:
yjh
2021-02-01 18:54:13 +08:00
committed by GitHub
parent 9c0f51ab8b
commit 4da880ed41
5 changed files with 11 additions and 11 deletions
+5 -5
View File
@@ -549,7 +549,7 @@ fn deposit_event_max_value_limit() {
));
let addr = Contracts::contract_address(&ALICE, &code_hash, &[]);
// The instantation deducted the rent for one block immediatly
// The instantiation deducted the rent for one block immediately
let first_rent = <Test as Config>::RentFraction::get()
// base_deposit - free_balance
.mul_ceil(80_000 - 30_000)
@@ -812,7 +812,7 @@ fn deduct_blocks() {
let addr = Contracts::contract_address(&ALICE, &code_hash, &[]);
ContractInfoOf::<Test>::get(&addr).unwrap().get_alive().unwrap();
// The instantation deducted the rent for one block immediatly
// The instantiation deducted the rent for one block immediately
let rent0 = <Test as Config>::RentFraction::get()
// base_deposit + deploy_set_storage (4 bytes in 1 item) - free_balance
.mul_ceil(80_000 + 40_000 + 10_000 - 30_000)
@@ -1173,7 +1173,7 @@ fn default_rent_allowance_on_instantiate() {
));
let addr = Contracts::contract_address(&ALICE, &code_hash, &[]);
// The instantation deducted the rent for one block immediatly
// The instantiation deducted the rent for one block immediately
let first_rent = <Test as Config>::RentFraction::get()
// base_deposit - free_balance
.mul_ceil(80_000 - 30_000)
@@ -2501,7 +2501,7 @@ fn deletion_queue_full() {
fn not_deployed_if_endowment_too_low_for_first_rent() {
let (wasm, code_hash) = compile_module::<Test>("set_rent").unwrap();
// The instantation deducted the rent for one block immediatly
// The instantiation deducted the rent for one block immediately
let first_rent = <Test as Config>::RentFraction::get()
// base_deposit + deploy_set_storage (4 bytes in 1 item) - free_balance
.mul_ceil(80_000u32 + 40_000 + 10_000 - 30_000)
@@ -2546,7 +2546,7 @@ fn surcharge_reward_is_capped() {
let balance = Balances::free_balance(&ALICE);
let reward = <Test as Config>::SurchargeReward::get();
// some rent should have payed due to instantation
// some rent should have payed due to instantiation
assert_ne!(contract.rent_payed, 0);
// the reward should be parameterized sufficiently high to make this test useful