From 7068760f7277cab75b760a0d6ca95ccbfe2f78ae Mon Sep 17 00:00:00 2001 From: SuiYuan <165623542+suiyuan1314@users.noreply.github.com> Date: Fri, 31 May 2024 19:29:39 +0800 Subject: [PATCH] chore: remove repetitive words in comment and error msg (#6439) * remove repetitive words * Update modules/light-clients/08-wasm/keeper/msg_server_test.go --------- Co-authored-by: DimitrisJim --- modules/apps/29-fee/transfer_test.go | 2 +- modules/capability/keeper/keeper.go | 4 ++-- modules/light-clients/08-wasm/keeper/msg_server_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/apps/29-fee/transfer_test.go b/modules/apps/29-fee/transfer_test.go index dcfa344ab87..f78b56e25a9 100644 --- a/modules/apps/29-fee/transfer_test.go +++ b/modules/apps/29-fee/transfer_test.go @@ -99,7 +99,7 @@ func (suite *FeeTestSuite) TestTransferFeeUpgrade() { path.Setup() - // configure the channel upgrade to upgrade to an incentivized fee enabled transfer channel + // configure the channel upgrade to an incentivized fee enabled transfer channel upgradeVersion := string(types.ModuleCdc.MustMarshalJSON(&types.Metadata{FeeVersion: types.Version, AppVersion: transfertypes.V2})) path.EndpointA.ChannelConfig.ProposedUpgrade.Fields.Version = upgradeVersion path.EndpointB.ChannelConfig.ProposedUpgrade.Fields.Version = upgradeVersion diff --git a/modules/capability/keeper/keeper.go b/modules/capability/keeper/keeper.go index bae88188b6e..2e663b536fc 100644 --- a/modules/capability/keeper/keeper.go +++ b/modules/capability/keeper/keeper.go @@ -218,7 +218,7 @@ func (k Keeper) InitializeCapability(ctx sdk.Context, index uint64, owners types // and retrieve the in-memory pointer to the capability from our map memStore.Set(types.RevCapabilityKey(owner.Module, owner.Name), sdk.Uint64ToBigEndian(index)) - // Set the mapping from index from index to in-memory capability in the go map + // Set the mapping from index to in-memory capability in the go map k.capMap[index] = capability } } @@ -266,7 +266,7 @@ func (sk ScopedKeeper) NewCapability(ctx sdk.Context, name string) (*types.Capab // and retrieve the in-memory pointer to the capability from our map memStore.Set(types.RevCapabilityKey(sk.module, name), sdk.Uint64ToBigEndian(index)) - // Set the mapping from index from index to in-memory capability in the go map + // Set the mapping from index to in-memory capability in the go map sk.capMap[index] = capability logger(ctx).Info("created new capability", "module", sk.module, "name", name) diff --git a/modules/light-clients/08-wasm/keeper/msg_server_test.go b/modules/light-clients/08-wasm/keeper/msg_server_test.go index 628fd81dbc0..cb17191c69f 100644 --- a/modules/light-clients/08-wasm/keeper/msg_server_test.go +++ b/modules/light-clients/08-wasm/keeper/msg_server_test.go @@ -62,7 +62,7 @@ func (suite *KeeperTestSuite) TestMsgStoreCode() { func() { msg = types.NewMsgStoreCode(signer, []byte{0, 1, 3, 4}) }, - errors.New("Wasm bytes do not not start with Wasm magic number"), + errors.New("Wasm bytes do not not start with Wasm magic number"), // Do not fix typo, it is fixed in upstream wasmvm. }, { "fails with wasm code too large",