From a9ee3db0e0ff1cd93f10c8304bdd1bb882bf8ef6 Mon Sep 17 00:00:00 2001 From: careworry Date: Thu, 18 Apr 2024 19:08:30 +0800 Subject: [PATCH] chore: remove repetitive words Signed-off-by: careworry --- .../apps/27-interchain-accounts/controller/keeper/relay.go | 2 +- modules/light-clients/08-wasm/keeper/msg_server_test.go | 2 +- modules/light-clients/08-wasm/types/gas_register.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/apps/27-interchain-accounts/controller/keeper/relay.go b/modules/apps/27-interchain-accounts/controller/keeper/relay.go index f728455e646f..9b8de9297502 100644 --- a/modules/apps/27-interchain-accounts/controller/keeper/relay.go +++ b/modules/apps/27-interchain-accounts/controller/keeper/relay.go @@ -20,7 +20,7 @@ import ( // In the case of channel closure, a new channel may be reopened to reconnect to the host chain. // // Deprecated: this is a legacy API that is only intended to function correctly in workflows where an underlying application has been set. -// Prior to to v6.x.x of ibc-go, the controller module was only functional as middleware, with authentication performed +// Prior to v6.x.x of ibc-go, the controller module was only functional as middleware, with authentication performed // by the underlying application. For a full summary of the changes in v6.x.x, please see ADR009. // This API will be removed in later releases. func (k Keeper) SendTx(ctx sdk.Context, _ *capabilitytypes.Capability, connectionID, portID string, icaPacketData icatypes.InterchainAccountPacketData, timeoutTimestamp uint64) (uint64, error) { 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 460ff992559e..7d67ded0571e 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 start with Wasm magic number"), }, { "fails with wasm code too large", diff --git a/modules/light-clients/08-wasm/types/gas_register.go b/modules/light-clients/08-wasm/types/gas_register.go index 0b16ef6e5675..7119c8f274f9 100644 --- a/modules/light-clients/08-wasm/types/gas_register.go +++ b/modules/light-clients/08-wasm/types/gas_register.go @@ -84,7 +84,7 @@ type GasRegister interface { // SetupContractCost are charged when interacting with a Wasm contract, i.e. every time // the contract is prepared for execution through any entry point (execute/instantiate/sudo/query/ibc_*/...). SetupContractCost(discount bool, msgLen int) storetypes.Gas - // ReplyCosts costs to to handle a message reply + // ReplyCosts costs to handle a message reply ReplyCosts(discount bool, reply wasmvmtypes.Reply) storetypes.Gas // EventCosts costs to persist an event EventCosts(attrs []wasmvmtypes.EventAttribute, events wasmvmtypes.Array[wasmvmtypes.Event]) storetypes.Gas @@ -190,7 +190,7 @@ func (g WasmGasRegister) SetupContractCost(discount bool, msgLen int) storetypes return g.c.InstanceCost + dataCost } -// ReplyCosts costs to to handle a message reply. +// ReplyCosts costs to handle a message reply. // Set discount to true in cases where you can reasonably assume the contract // is loaded from an in-memory cache (e.g. pinned contracts or replys). func (g WasmGasRegister) ReplyCosts(discount bool, reply wasmvmtypes.Reply) storetypes.Gas {