Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #173

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/evm-tracing/src/formatters/blockscout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub struct BlockscoutCall {
pub trace_address: Vec<u32>,
/// Number of children calls.
/// Not needed for Blockscout, but needed for `crate::block`
/// types that are build from this type.
/// types that are built from this type.
#[serde(skip)]
pub subtraces: u32,
/// Sends funds to the (payable) function
Expand Down
4 changes: 2 additions & 2 deletions client/evm-tracing/src/listeners/call_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use std::{collections::btree_map::BTreeMap, vec, vec::Vec};
/// Enum of the different "modes" of tracer for multiple runtime versions and
/// the kind of EVM events that are emitted.
enum TracingVersion {
/// The first event of the transaction is `EvmEvent::TransactX`. It goes along other events
/// The first event of the transaction is `EvmEvent::TransactX`. It goes along with other events
/// such as `EvmEvent::Exit`. All contexts should have clear start/end boundaries.
EarlyTransact,
/// Older version in which the events above didn't existed.
Expand Down Expand Up @@ -69,7 +69,7 @@ pub struct Listener {
// /// To handle EvmEvent::Exit no emitted by previous runtimes versions,
// /// entries are not inserted directly in `self.entries`.
// pending_entries: Vec<(u32, Call)>,
/// See `RuntimeEvent::StepResult` event explanatioins.
/// See `RuntimeEvent::StepResult` event explanations.
step_result_entry: Option<(u32, Call)>,

/// When tracing a block `Event::CallListNew` is emitted before each Ethereum transaction is
Expand Down
2 changes: 1 addition & 1 deletion client/evm-tracing/src/listeners/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ impl Listener {
}
},
RuntimeEvent::StepResult { result, return_value } => {
// StepResult is expected to be emited after a step (in a context).
// StepResult is expected to be emitted after a step (in a context).
// Only case StepResult will occur without a Step before is in a transfer
// transaction to a non-contract address. However it will not contain any
// steps and return an empty trace, so we can ignore this edge case.
Expand Down
2 changes: 1 addition & 1 deletion node/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ pub struct ExportGenesisHeadCommand {
#[clap(short, long)]
pub raw: bool,

/// The name of the chain for that the genesis state should be exported.
/// The name of the chain for the genesis state should be exported.
#[clap(long)]
pub chain: Option<String>,
}
Expand Down
2 changes: 1 addition & 1 deletion pallets/block-reward/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ mod v2 {

if onchain_version < current {
log!(info, "Enter and do the migration, {:?} < {:?}", onchain_version, current);
// Deprecated the ObsoletRelease because ther are some wrong settings.. Therefore,
// Deprecated the ObsoletRelease because there are some wrong settings.. Therefore,
// try to use another checking
if HardCap::<T>::exists() {
log!(info, "Migrating block_reward to Releases::V2_1_0");
Expand Down
6 changes: 3 additions & 3 deletions pallets/block-reward/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub struct RewardDistributionConfigV0 {

impl Default for RewardDistributionConfigV0 {
/// `default` values based on configuration at the time of writing this code.
/// Should be overriden by desired params.
/// Should be overridden by desired params.
fn default() -> Self {
RewardDistributionConfigV0 {
treasury_percent: Perbill::from_percent(15),
Expand Down Expand Up @@ -125,7 +125,7 @@ pub struct RewardDistributionConfig {

impl Default for RewardDistributionConfig {
/// `default` values based on configuration at the time of writing this code.
/// Should be overriden by desired params.
/// Should be overridden by desired params.
fn default() -> Self {
RewardDistributionConfig {
treasury_percent: Perbill::from_percent(25),
Expand All @@ -141,7 +141,7 @@ impl Default for RewardDistributionConfig {
impl RewardDistributionConfig {
/// `true` if sum of all percentages is `one whole`, `false` otherwise.
pub fn is_consistent(&self) -> bool {
// TODO: perhaps this can be writen in a more cleaner way?
// TODO: perhaps this can be written in a more cleaner way?
// experimental-only `try_reduce` could be used but it's not available
// https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_reduce

Expand Down
Loading