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

chore: fix some comments #1963

Open
wants to merge 1 commit into
base: main
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 ci/check_runtime_changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RUNTIME_FILE_CHANGED=$(echo "${CHANGED_FILES}" | grep -e ^runtime/ | wc -l)

echo "There are ${RUNTIME_FILE_CHANGED} file(s) changed in runtime "

# If there are no changes in the runtime file, exit sucessfully
# If there are no changes in the runtime file, exit successfully
if (( $RUNTIME_FILE_CHANGED == 0 ))
then
echo -e "| ${OK} Nothing is changed in runtime"
Expand Down
2 changes: 1 addition & 1 deletion pallets/liquidity-pools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ pub mod pallet {
/// The metadata of the given asset does not declare it as transferable
/// via LiquidityPools'.
AssetNotLiquidityPoolsTransferable,
/// The asset is not a a wrapped token and thus cannot be
/// The asset is not a wrapped token and thus cannot be
/// transferred via liquidity pools.
AssetNotLiquidityPoolsWrappedToken,
/// A pool could not be found.
Expand Down
4 changes: 2 additions & 2 deletions pallets/pool-system/src/tranches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2064,7 +2064,7 @@ pub mod test {
fn replace_tranche_less_interest_than_next_works() {
let mut tranches = default_tranches();

// ensure we have an interest rate lower than the the left side tranche with a
// ensure we have an interest rate lower than the left side tranche with a
// lower index, e.g. lower than 10% at index 1
let int_per_sec = Rate::one() / Rate::saturating_from_integer(SECS_PER_YEAR);
let min_risk_buffer = Perquintill::from_rational(4u64, 5);
Expand Down Expand Up @@ -2144,7 +2144,7 @@ pub mod test {
let mut tranches = default_tranches();

let min_risk_buffer = Perquintill::from_rational(4u64, 5);
// ensure we have an interest rate larger than the the right-side tranche with a
// ensure we have an interest rate larger than the right-side tranche with a
// greater index, e.g. larger than 5% at index 2
let int_per_sec = Rate::saturating_from_rational(6u64, 100)
/ Rate::saturating_from_integer(SECS_PER_YEAR)
Expand Down
2 changes: 1 addition & 1 deletion runtime/integration-tests/src/cases/block_rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn apply_and_check_session<T: Runtime>(
// The event exists in this list:
dbg!(frame_system::Pallet::<T>::events())

// But not in in this list (that is the implementation of find_event()),
// But not in this list (that is the implementation of find_event()),
// so try_into returns an Err for it.
dbg!(frame_system::Pallet::<T>::events()
.into_iter()
Expand Down