Skip to content

Commit 41a10b7

Browse files
authored
fix typo (#2863)
1 parent ac37316 commit 41a10b7

File tree

27 files changed

+79
-87
lines changed

27 files changed

+79
-87
lines changed

modules/auction-manager/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ impl<T: Config> Pallet<T> {
356356
let mut to_be_continue = StorageValueRef::persistent(OFFCHAIN_WORKER_DATA);
357357

358358
// get to_be_continue record,
359-
// if it exsits, iterator map storage start with previous key
359+
// if it exists, iterator map storage start with previous key
360360
let start_key = to_be_continue.get::<Vec<u8>>().unwrap_or_default();
361361

362362
// get the max iterationns config

modules/collator-selection/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ pub mod pallet {
251251
#[pallet::event]
252252
#[pallet::generate_deposit(pub(super) fn deposit_event)]
253253
pub enum Event<T: Config> {
254-
/// Invulnurable was updated.
254+
/// Invulnerable was updated.
255255
NewInvulnerables { new_invulnerables: Vec<T::AccountId> },
256256
/// Desired candidates was updated.
257257
NewDesiredCandidates { new_desired_candidates: u32 },

modules/currencies/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2946,7 +2946,7 @@ fn sweep_dust_native_currency_works() {
29462946
},
29472947
));
29482948

2949-
// TODO: seems the insert directly does not work now, it's probably because of the new machanism of
2949+
// TODO: seems the insert directly does not work now, it's probably because of the new mechanism of
29502950
// provider and consumer: https://github.com/paritytech/substrate/blob/569aae5341ea0c1d10426fa1ec13a36c0b64393b/frame/system/src/lib.rs#L1692
29512951
// consider deposit_creating alive account, then decrease the ED to fix this test!
29522952
assert_eq!(

modules/dex/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ pub mod module {
173173
UnacceptableShareIncrement,
174174
/// The liquidity withdrawn is unacceptable
175175
UnacceptableLiquidityWithdrawn,
176-
/// The swap dosen't meet the invariant check
176+
/// The swap doesn't meet the invariant check
177177
InvariantCheckFailed,
178178
/// The Provision is unqualified to be converted to `Enabled`
179179
UnqualifiedProvision,

modules/evm-accounts/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,13 @@ impl<T: Config> Pallet<T> {
240240

241241
fn evm_account_domain_separator() -> [u8; 32] {
242242
let domain_hash = keccak256!("EIP712Domain(string name,string version,uint256 chainId,bytes32 salt)");
243-
let mut domain_seperator_msg = domain_hash.to_vec();
244-
domain_seperator_msg.extend_from_slice(keccak256!("Acala EVM claim")); // name
245-
domain_seperator_msg.extend_from_slice(keccak256!("1")); // version
246-
domain_seperator_msg.extend_from_slice(&to_bytes(T::ChainId::get())); // chain id
247-
domain_seperator_msg
243+
let mut domain_separator_msg = domain_hash.to_vec();
244+
domain_separator_msg.extend_from_slice(keccak256!("Acala EVM claim")); // name
245+
domain_separator_msg.extend_from_slice(keccak256!("1")); // version
246+
domain_separator_msg.extend_from_slice(&to_bytes(T::ChainId::get())); // chain id
247+
domain_separator_msg
248248
.extend_from_slice(frame_system::Pallet::<T>::block_hash(BlockNumberFor::<T>::zero()).as_ref()); // genesis block hash
249-
keccak_256(domain_seperator_msg.as_slice())
249+
keccak_256(domain_separator_msg.as_slice())
250250
}
251251

252252
fn do_claim_default_evm_address(who: T::AccountId) -> Result<EvmAddress, DispatchError> {

modules/evm-utility/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// You should have received a copy of the GNU General Public License
1717
// along with this program. If not, see <https://www.gnu.org/licenses/>.
1818

19-
//! # Evm utiltity Module
19+
//! # Evm utility Module
2020
//!
2121
//! A pallet provides some utility methods.
2222

modules/evm/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -719,14 +719,14 @@ pub mod module {
719719
ensure_root(origin)?;
720720

721721
let _from_account = T::AddressMapping::get_account_id(&from);
722-
let _payed: NegativeImbalanceOf<T>;
722+
let _paid: NegativeImbalanceOf<T>;
723723
#[cfg(not(feature = "with-ethereum-compatibility"))]
724724
{
725725
// unreserve the transaction fee for gas_limit
726726
let weight = T::GasToWeight::convert(gas_limit);
727727
let (_, imbalance) = T::ChargeTransactionPayment::unreserve_and_charge_fee(&_from_account, weight)
728728
.map_err(|_| Error::<T>::ChargeFeeFailed)?;
729-
_payed = imbalance;
729+
_paid = imbalance;
730730
}
731731

732732
match T::Runner::call(
@@ -786,7 +786,7 @@ pub mod module {
786786
let res = T::ChargeTransactionPayment::refund_fee(
787787
&_from_account,
788788
T::GasToWeight::convert(refund_gas),
789-
_payed,
789+
_paid,
790790
);
791791
debug_assert!(res.is_ok());
792792
}

modules/evm/src/runner/state.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,7 @@ impl<'inner, 'config, 'precompiles, S: StackState<'config>, P: PrecompileSet> Pr
16251625
self.executor.state.refund_external_cost(ref_time, proof_size);
16261626
}
16271627

1628-
/// Retreive the remaining gas.
1628+
/// Retrieve the remaining gas.
16291629
fn remaining_gas(&self) -> u64 {
16301630
self.executor.state.metadata().gasometer.gas()
16311631
}
@@ -1635,17 +1635,17 @@ impl<'inner, 'config, 'precompiles, S: StackState<'config>, P: PrecompileSet> Pr
16351635
Handler::log(self.executor, address, topics, data)
16361636
}
16371637

1638-
/// Retreive the code address (what is the address of the precompile being called).
1638+
/// Retrieve the code address (what is the address of the precompile being called).
16391639
fn code_address(&self) -> H160 {
16401640
self.code_address
16411641
}
16421642

1643-
/// Retreive the input data the precompile is called with.
1643+
/// Retrieve the input data the precompile is called with.
16441644
fn input(&self) -> &[u8] {
16451645
self.input
16461646
}
16471647

1648-
/// Retreive the context in which the precompile is executed.
1648+
/// Retrieve the context in which the precompile is executed.
16491649
fn context(&self) -> &Context {
16501650
self.context
16511651
}
@@ -1655,7 +1655,7 @@ impl<'inner, 'config, 'precompiles, S: StackState<'config>, P: PrecompileSet> Pr
16551655
self.is_static
16561656
}
16571657

1658-
/// Retreive the gas limit of this call.
1658+
/// Retrieve the gas limit of this call.
16591659
fn gas_limit(&self) -> Option<u64> {
16601660
self.gas_limit
16611661
}

modules/idle-scheduler/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ fn can_process_tasks_up_to_weight_limit() {
8080
Weight::from_parts(100_002_000_000, 0) + <()>::on_idle_base() + (<()>::clear_tasks() * 2),
8181
);
8282

83-
// Due to hashing, excution is not guaranteed to be in order.
83+
// Due to hashing, execution is not guaranteed to be in order.
8484
assert_eq!(
8585
Tasks::<Runtime>::get(0),
8686
Some(ScheduledTasks::BalancesTask(BalancesTask::OnIdle))

modules/incentives/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ fn transfer_reward_and_update_rewards_storage_atomically_when_accumulate_incenti
11681168
vec![(PoolId::Loans(LDOT), vec![(ACA, 30), (AUSD, 90)]),],
11691169
));
11701170

1171-
// accumulate ACA and AUSD failed, because pool dosen't exist
1171+
// accumulate ACA and AUSD failed, because pool doesn't exist
11721172
IncentivesModule::accumulate_incentives(PoolId::Loans(LDOT));
11731173
assert_eq!(
11741174
orml_rewards::PoolInfos::<Runtime>::contains_key(PoolId::Dex(LDOT)),

0 commit comments

Comments
 (0)