From dcf6235b62bae92dffe04921e20603d3bc0141d9 Mon Sep 17 00:00:00 2001 From: haouvw Date: Mon, 26 Aug 2024 21:53:13 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: haouvw --- e2e/sample.config.extended.yaml | 2 +- modules/apps/transfer/ibc_module_test.go | 2 +- modules/apps/transfer/types/packet_test.go | 2 +- modules/apps/transfer/types/transfer_authorization_test.go | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e/sample.config.extended.yaml b/e2e/sample.config.extended.yaml index bda285a78d3..034dc396c43 100644 --- a/e2e/sample.config.extended.yaml +++ b/e2e/sample.config.extended.yaml @@ -13,7 +13,7 @@ # | RELAYER_ID | The type of relayer to use (rly/hermes) | hermes | -# see sample.config.yaml for a bare minium configuration example. +# see sample.config.yaml for a bare minimum configuration example. # set env E2E_CONFIG_PATH to point to this file to use it. --- chains: diff --git a/modules/apps/transfer/ibc_module_test.go b/modules/apps/transfer/ibc_module_test.go index 0a22a96e8bd..266565b66d1 100644 --- a/modules/apps/transfer/ibc_module_test.go +++ b/modules/apps/transfer/ibc_module_test.go @@ -294,7 +294,7 @@ func (suite *TransferTestSuite) TestOnRecvPacket() { "success", func() {}, channeltypes.NewResultAcknowledgement([]byte{byte(1)}), "", }, { - "success: async aknowledgment with forwarding path", + "success: async acknowledgment with forwarding path", func() { packetData := types.NewFungibleTokenPacketDataV2( []types.Token{ diff --git a/modules/apps/transfer/types/packet_test.go b/modules/apps/transfer/types/packet_test.go index c876444d08d..12911543a07 100644 --- a/modules/apps/transfer/types/packet_test.go +++ b/modules/apps/transfer/types/packet_test.go @@ -32,7 +32,7 @@ func TestFungibleTokenPacketDataValidateBasic(t *testing.T) { {"valid packet with memo", types.NewFungibleTokenPacketData(denom, amount, sender, receiver, "memo"), true}, {"valid packet with large amount", types.NewFungibleTokenPacketData(denom, largeAmount, sender, receiver, ""), true}, {"invalid denom", types.NewFungibleTokenPacketData("", amount, sender, receiver, ""), false}, - {"invalid denom, invalid portID", types.NewFungibleTokenPacketData("(tranfer)/channel-1/uatom", amount, sender, receiver, ""), false}, + {"invalid denom, invalid portID", types.NewFungibleTokenPacketData("(transfer)/channel-1/uatom", amount, sender, receiver, ""), false}, {"invalid empty amount", types.NewFungibleTokenPacketData(denom, "", sender, receiver, ""), false}, {"invalid zero amount", types.NewFungibleTokenPacketData(denom, "0", sender, receiver, ""), false}, {"invalid negative amount", types.NewFungibleTokenPacketData(denom, "-1", sender, receiver, ""), false}, diff --git a/modules/apps/transfer/types/transfer_authorization_test.go b/modules/apps/transfer/types/transfer_authorization_test.go index 678c42247f3..ca8bdf1819f 100644 --- a/modules/apps/transfer/types/transfer_authorization_test.go +++ b/modules/apps/transfer/types/transfer_authorization_test.go @@ -646,7 +646,7 @@ func (suite *TypesTestSuite) TestTransferAuthorizationValidateBasic() { false, }, { - "fowarding hop with invalid port ID", + "forwarding hop with invalid port ID", func() { transferAuthz.Allocations[0].AllowedForwarding = []types.AllowedForwarding{ {Hops: []types.Hop{validHop}}, @@ -656,7 +656,7 @@ func (suite *TypesTestSuite) TestTransferAuthorizationValidateBasic() { false, }, { - "fowarding hop with invalid channel ID", + "forwarding hop with invalid channel ID", func() { transferAuthz.Allocations[0].AllowedForwarding = []types.AllowedForwarding{ {Hops: []types.Hop{validHop}},