Skip to content

Commit

Permalink
chore: fix some typos in comments (#2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
overallteach authored May 8, 2024
1 parent 8083a25 commit c7afbd0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion x/axelarnet/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func NewAxelarnetIBCModule(
}

// OnRecvPacket implements the IBCModule interface. A successful acknowledgement
// is returned if the packet data is succesfully decoded and the receive application
// is returned if the packet data is successfully decoded and the receive application
// logic returns without error.
func (m AxelarnetIBCModule) OnRecvPacket(
ctx sdk.Context,
Expand Down
4 changes: 2 additions & 2 deletions x/nexus/keeper/general_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func TestRouteMessage(t *testing.T) {
assert.ErrorContains(t, keeper.RouteMessage(ctx, msg.ID), "not an hex address")
}),

When("the destination chain does't support the asset", func() {
When("the destination chain doesn't support the asset", func() {
msg.Recipient = exported.CrossChainAddress{
Chain: evm.Ethereum,
Address: evmtestutils.RandomAddress().Hex(),
Expand Down Expand Up @@ -327,7 +327,7 @@ func TestRouteMessage(t *testing.T) {
assert.ErrorContains(t, keeper.RouteMessage(ctx, msg.ID), "not an hex address")
}),

When("the sender chain does't support the asset", func() {
When("the sender chain doesn't support the asset", func() {
msg.Sender = exported.CrossChainAddress{
Chain: evm.Ethereum,
Address: evmtestutils.RandomAddress().Hex(),
Expand Down
2 changes: 1 addition & 1 deletion x/snapshot/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (k Keeper) GetOperator(ctx sdk.Context, proxy sdk.AccAddress) sdk.ValAddres
}

// GetProxy returns the proxy address for a given operator address. Returns nil if not set.
// The bool value denotes wether or not the proxy is active and to be included in the next snapshot
// The bool value denotes whether or not the proxy is active and to be included in the next snapshot
func (k Keeper) GetProxy(ctx sdk.Context, operator sdk.ValAddress) (addr sdk.AccAddress, active bool) {
if proxiedValidator, ok := k.getProxiedValidator(ctx, operator); ok {
return proxiedValidator.Proxy, proxiedValidator.Active
Expand Down

0 comments on commit c7afbd0

Please sign in to comment.