Skip to content

Commit

Permalink
fix many typos (#7703)
Browse files Browse the repository at this point in the history
* fix many typos

* fix: lingering conflicts.

---------

Co-authored-by: DimitrisJim <[email protected]>
  • Loading branch information
iIvaki and DimitrisJim authored Dec 17, 2024
1 parent 42421af commit ebab69a
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion modules/apps/callbacks/ibc_middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (s *CallbacksTestSuite) TestOnAcknowledgementPacket() {
nil,
},
{
"failure: underlying app OnAcknolwedgePacket fails",
"failure: underlying app OnAcknowledgePacket fails",
func() {
ack = []byte("invalid ack")
},
Expand Down
4 changes: 2 additions & 2 deletions modules/core/02-client/types/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func NewIdentifiedClientState(clientID string, clientState exported.ClientState)
}
}

// UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces
// UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (ics IdentifiedClientState) UnpackInterfaces(unpacker gogoprotoany.AnyUnpacker) error {
return unpacker.UnpackAny(ics.ClientState, new(exported.ClientState))
}
Expand Down Expand Up @@ -83,7 +83,7 @@ func NewConsensusStateWithHeight(height Height, consensusState exported.Consensu
}
}

// UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces
// UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (cswh ConsensusStateWithHeight) UnpackInterfaces(unpacker gogoprotoany.AnyUnpacker) error {
return unpacker.UnpackAny(cswh.ConsensusState, new(exported.ConsensusState))
}
Expand Down
2 changes: 1 addition & 1 deletion modules/core/02-client/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (msg MsgUpgradeClient) ValidateBasic() error {
if err != nil {
return err
}
// will not validate consensus state here since the trusted kernel may not form a valid consenus state.
// will not validate consensus state here since the trusted kernel may not form a valid consensus state.
// client implementations are responsible for ensuring client can submit new headers against this consensus state.
consensusState, err := UnpackConsensusState(msg.ConsensusState)
if err != nil {
Expand Down
8 changes: 4 additions & 4 deletions modules/core/02-client/types/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var (
_ gogoprotoany.UnpackInterfacesMessage = (*QueryConsensusStatesResponse)(nil)
)

// UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces
// UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (qcsr QueryClientStatesResponse) UnpackInterfaces(unpacker gogoprotoany.AnyUnpacker) error {
for _, cs := range qcsr.ClientStates {
if err := cs.UnpackInterfaces(unpacker); err != nil {
Expand All @@ -36,12 +36,12 @@ func NewQueryClientStateResponse(
}
}

// UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces
// UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (qcsr QueryClientStateResponse) UnpackInterfaces(unpacker gogoprotoany.AnyUnpacker) error {
return unpacker.UnpackAny(qcsr.ClientState, new(exported.ClientState))
}

// UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces
// UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (qcsr QueryConsensusStatesResponse) UnpackInterfaces(unpacker gogoprotoany.AnyUnpacker) error {
for _, cs := range qcsr.ConsensusStates {
if err := cs.UnpackInterfaces(unpacker); err != nil {
Expand All @@ -62,7 +62,7 @@ func NewQueryConsensusStateResponse(
}
}

// UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces
// UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (qcsr QueryConsensusStateResponse) UnpackInterfaces(unpacker gogoprotoany.AnyUnpacker) error {
return unpacker.UnpackAny(qcsr.ConsensusState, new(exported.ConsensusState))
}
4 changes: 2 additions & 2 deletions modules/core/03-connection/types/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func NewQueryConnectionClientStateResponse(identifiedClientState clienttypes.Ide
}
}

// UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces
// UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (qccsr QueryConnectionClientStateResponse) UnpackInterfaces(unpacker gogoprotoany.AnyUnpacker) error {
return qccsr.IdentifiedClientState.UnpackInterfaces(unpacker)
}
Expand All @@ -65,7 +65,7 @@ func NewQueryConnectionConsensusStateResponse(clientID string, anyConsensusState
}
}

// UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces
// UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (qccsr QueryConnectionConsensusStateResponse) UnpackInterfaces(unpacker gogoprotoany.AnyUnpacker) error {
return unpacker.UnpackAny(qccsr.ConsensusState, new(exported.ConsensusState))
}
2 changes: 1 addition & 1 deletion modules/core/04-channel/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ func (k *Keeper) GetAllPacketCommitments(ctx context.Context) (commitments []typ
return commitments
}

// IteratePacketCommitmentAtChannel provides an iterator over all PacketCommmitment objects
// IteratePacketCommitmentAtChannel provides an iterator over all PacketCommitment objects
// at a specified channel. For each packet commitment, cb will be called. If the cb returns
// true, the iterator will close and stop.
func (k *Keeper) IteratePacketCommitmentAtChannel(ctx context.Context, portID, channelID string, cb func(_, _ string, sequence uint64, hash []byte) bool) {
Expand Down
2 changes: 1 addition & 1 deletion modules/core/04-channel/types/acknowledgement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (suite *TypesTestSuite) TestAcknowledgement() {
}

// The safety of including ABCI error codes in the acknowledgement rests
// on the inclusion of these ABCI error codes in the abcitypes.ResposneDeliverTx
// on the inclusion of these ABCI error codes in the abcitypes.ResponseDeliverTx
// hash. If the ABCI codes get removed from consensus they must no longer be used
// in the packet acknowledgement.
//
Expand Down
2 changes: 1 addition & 1 deletion modules/core/04-channel/types/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (u *UpgradeError) GetErrorReceipt() ErrorReceipt {
// NOTE: Changing this const is state machine breaking as it is written into state.
const restoreErrorString = "restored channel to pre-upgrade state"

_, code, _ := errorsmod.ABCIInfo(u, false) // discard non-determinstic codespace and log values
_, code, _ := errorsmod.ABCIInfo(u, false) // discard non-deterministic codespace and log values
return ErrorReceipt{
Sequence: u.sequence,
Message: fmt.Sprintf("ABCI code: %d: %s", code, restoreErrorString),
Expand Down
2 changes: 1 addition & 1 deletion modules/light-clients/07-tendermint/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func IterateConsensusStateAscending(clientStore storetypes.KVStore, cb func(heig

// GetNextConsensusState returns the lowest consensus state that is larger than the given height.
// The Iterator returns a storetypes.Iterator which iterates from start (inclusive) to end (exclusive).
// If the starting height exists in store, we need to call iterator.Next() to get the next consenus state.
// If the starting height exists in store, we need to call iterator.Next() to get the next consensus state.
// Otherwise, the iterator is already at the next consensus state so we can call iterator.Value() immediately.
func GetNextConsensusState(clientStore storetypes.KVStore, cdc codec.BinaryCodec, height exported.Height) (*ConsensusState, bool) {
iterateStore := prefix.NewStore(clientStore, []byte(KeyIterateConsensusStatePrefix))
Expand Down
2 changes: 1 addition & 1 deletion modules/light-clients/08-wasm/testing/simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ func NewSimApp(
// you can use NewKeeperWithConfig constructor function and provide
// the Wasm VM configuration parameters of your choice.
// Check out the WasmConfig type definition for more information on
// each parameter. Some parameters allow node-leve configurations.
// each parameter. Some parameters allow node-level configurations.
// Function DefaultWasmConfig can also be used to use default values.
//
// In the code below we use the second method because we are not using x/wasm in this app.go.
Expand Down

0 comments on commit ebab69a

Please sign in to comment.