Skip to content

Commit

Permalink
chore: remove repetitive words in comment and error msg (#6439)
Browse files Browse the repository at this point in the history
* remove repetitive words

* Update modules/light-clients/08-wasm/keeper/msg_server_test.go

---------

Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
  • Loading branch information
suiyuan1314 and DimitrisJim committed May 31, 2024
1 parent e67e30b commit 7068760
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/apps/29-fee/transfer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions modules/capability/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion modules/light-clients/08-wasm/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7068760

Please sign in to comment.