From 88e10f6b330cd716ffea3b4465f394013e6f0bdf Mon Sep 17 00:00:00 2001 From: kylezs Date: Thu, 21 Sep 2023 10:59:26 +0200 Subject: [PATCH] chore: clean up some comments --- state-chain/pallets/cf-ingress-egress/src/lib.rs | 2 -- state-chain/pallets/cf-ingress-egress/src/tests.rs | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/state-chain/pallets/cf-ingress-egress/src/lib.rs b/state-chain/pallets/cf-ingress-egress/src/lib.rs index 3a8c2e0393c..29dec84af68 100644 --- a/state-chain/pallets/cf-ingress-egress/src/lib.rs +++ b/state-chain/pallets/cf-ingress-egress/src/lib.rs @@ -627,7 +627,6 @@ impl, I: 'static> Pallet { .collect() }); - // Returns Ok(()) if there's nothing to send. if batch_to_send.is_empty() { return TransactionOutcome::Commit(Ok(())) } @@ -638,7 +637,6 @@ impl, I: 'static> Pallet { let mut addresses = vec![]; for request in batch_to_send { - // We need to pull out what we need above. match request { FetchOrTransfer::::Fetch { asset, diff --git a/state-chain/pallets/cf-ingress-egress/src/tests.rs b/state-chain/pallets/cf-ingress-egress/src/tests.rs index cd359594fcd..83ddd7e4569 100644 --- a/state-chain/pallets/cf-ingress-egress/src/tests.rs +++ b/state-chain/pallets/cf-ingress-egress/src/tests.rs @@ -886,7 +886,6 @@ fn channel_reuse_with_different_assets() { asset ); }) - // move forward expired blocks .then_execute_at_next_block(|(_, channel_id, _)| { let recycle_block = BlockHeightProvider::::get_block_height() + DepositChannelLifetime::::get() * 2; @@ -919,8 +918,8 @@ fn channel_reuse_with_different_assets() { /// This is the sequence we're testing. /// 1. Request deposit address -/// 2. Deposit to address when it's almost expired -/// 3. The channel is expired +/// 2. Deposit to address when it's almost recycled +/// 3. The channel is recycled /// 4. We need to finalise the ingress, by fetching /// 5. The fetch should succeed. #[test]