From d59df3166531fe547272681a2c6aac47edf2399e Mon Sep 17 00:00:00 2001 From: BiKangNing <164312726+depthlending@users.noreply.github.com> Date: Thu, 12 Dec 2024 17:07:00 +0800 Subject: [PATCH] chore: remove redundant words in comment (#715) Signed-off-by: depthlending --- chain-abstraction/interfaces.go | 2 +- testing/endtoend/e2e_crash_test.go | 2 +- testing/mocks/state-provider/layer2_state_provider.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chain-abstraction/interfaces.go b/chain-abstraction/interfaces.go index 32fbba0ce..8add36773 100644 --- a/chain-abstraction/interfaces.go +++ b/chain-abstraction/interfaces.go @@ -405,7 +405,7 @@ type ReadOnlyEdge interface { // The inherited timer from the edge's children or claiming edges based on the latest block number. // NOT reorg safe. LatestInheritedTimer(ctx context.Context) (InheritedTimer, error) - // The inherited timer from the edge's children or claiming edges based on the the safe block number. + // The inherited timer from the edge's children or claiming edges based on the safe block number. SafeHeadInheritedTimer(ctx context.Context) (InheritedTimer, error) // Whether or not an edge has rivals. HasRival(ctx context.Context) (bool, error) diff --git a/testing/endtoend/e2e_crash_test.go b/testing/endtoend/e2e_crash_test.go index 68d411d5b..4b1f11f01 100644 --- a/testing/endtoend/e2e_crash_test.go +++ b/testing/endtoend/e2e_crash_test.go @@ -221,7 +221,7 @@ func TestEndToEnd_HonestValidatorCrashes(t *testing.T) { isChallengeChild := parent.FirstChildBlock > 0 && parent.SecondChildBlock > 0 if !isChallengeChild { - // Assertion must be be a challenge child. + // Assertion must be a challenge child. continue } // We expect the honest party to have confirmed it. diff --git a/testing/mocks/state-provider/layer2_state_provider.go b/testing/mocks/state-provider/layer2_state_provider.go index 35c63d312..49a391753 100644 --- a/testing/mocks/state-provider/layer2_state_provider.go +++ b/testing/mocks/state-provider/layer2_state_provider.go @@ -3,7 +3,7 @@ // https://github.com/offchainlabs/bold/blob/main/LICENSE.md // Package stateprovider defines smarter mocks for testing purposes that can -// simulate a layer 2 state provider and and layer 2 state execution. +// simulate a layer 2 state provider and layer 2 state execution. package stateprovider import (