Skip to content

Commit

Permalink
chore: fix some comments (#993)
Browse files Browse the repository at this point in the history
Signed-off-by: deferdeter <deferdeter@outlook.com>
  • Loading branch information
deferdeter committed Apr 16, 2024
1 parent c572223 commit 9af1fa5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion oracle/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ fn multiple_calls_should_fail() {
vec![(50, 1300)].try_into().unwrap()
));

// Fails feeding by the the extrinsic
// Fails feeding by the extrinsic
assert_noop!(
ModuleOracle::feed_values(RuntimeOrigin::signed(1), vec![(50, 1300)].try_into().unwrap()),
Error::<Test, _>::AlreadyFeeded,
Expand Down
4 changes: 2 additions & 2 deletions rate-limit/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ fn consume_work() {
assert_eq!(RateLimit::rate_limit_quota(0, BTC.encode()), (0, 100));
assert_eq!(RateLimit::rate_limit_quota(0, ETH.encode()), (0, 1000));

// consume when vaule > remainer_quota
// consume when value > remainer_quota
RateLimit::consume(1, ETH, 1000);
assert_eq!(RateLimit::rate_limit_quota(1, ETH.encode()), (0, 0));
});
Expand Down Expand Up @@ -834,7 +834,7 @@ fn can_consume_work() {
assert_ok!(RateLimit::can_consume(1, BTC, 10000));
assert_ok!(RateLimit::can_consume(1, BTC, u128::MAX));

// if dosen't config rule, always return true
// if doesn't config rule, always return true
assert_eq!(RateLimitRules::<Runtime>::contains_key(0, ETH.encode()), false);
assert_ok!(RateLimit::can_consume(0, ETH, 10000));
assert_ok!(RateLimit::can_consume(0, ETH, u128::MAX));
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ fn do_transfer_report_keep_alive_error_when_ed_is_not_zero() {
);

// even if dave is in dust removal whitelist, but account drain will still cause
// account be be reaped.
// account be reaped.
assert_noop!(
Tokens::do_transfer(DOT, &DAVE, &BOB, 100, ExistenceRequirement::KeepAlive),
Error::<Runtime>::KeepAlive
Expand Down

0 comments on commit 9af1fa5

Please sign in to comment.