From 3be4eebf6435c8c0e9f6e2ad5348b420451488e7 Mon Sep 17 00:00:00 2001 From: oliveredget <188809800+oliveredget@users.noreply.github.com> Date: Thu, 26 Dec 2024 12:19:13 +0800 Subject: [PATCH] chore: fix typos (#23075) Co-authored-by: son trinh --- baseapp/abci_test.go | 4 ++-- baseapp/utils_test.go | 4 ++-- x/bank/v2/keeper/keeper_test.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/baseapp/abci_test.go b/baseapp/abci_test.go index e404f7c4793..7716b01421c 100644 --- a/baseapp/abci_test.go +++ b/baseapp/abci_test.go @@ -789,7 +789,7 @@ func TestABCI_Query_SimulateNestedMessagesTx(t *testing.T) { }) require.NoError(t, err) - baseapptestutil.RegisterNestedMessagesServer(suite.baseApp.MsgServiceRouter(), NestedMessgesServerImpl{}) + baseapptestutil.RegisterNestedMessagesServer(suite.baseApp.MsgServiceRouter(), NestedMessagesServerImpl{}) baseapptestutil.RegisterSendServer(suite.baseApp.MsgServiceRouter(), SendServerImpl{}) ac := codectestutil.CodecOptions{}.GetAddressCodec() @@ -975,7 +975,7 @@ func TestABCI_Query_SimulateNestedMessagesGas(t *testing.T) { }) require.NoError(t, err) - baseapptestutil.RegisterNestedMessagesServer(tt.suite.baseApp.MsgServiceRouter(), NestedMessgesServerImpl{}) + baseapptestutil.RegisterNestedMessagesServer(tt.suite.baseApp.MsgServiceRouter(), NestedMessagesServerImpl{}) baseapptestutil.RegisterSendServer(tt.suite.baseApp.MsgServiceRouter(), SendServerImpl{}) nestedMessages := make([]*any.Any, 1) diff --git a/baseapp/utils_test.go b/baseapp/utils_test.go index 27a7d05912e..724581e5943 100644 --- a/baseapp/utils_test.go +++ b/baseapp/utils_test.go @@ -409,11 +409,11 @@ func (s SendServerImpl) Send(ctx context.Context, send *baseapptestutil.MsgSend) return &baseapptestutil.MsgSendResponse{}, nil } -type NestedMessgesServerImpl struct { +type NestedMessagesServerImpl struct { gas uint64 } -func (n NestedMessgesServerImpl) Check(ctx context.Context, message *baseapptestutil.MsgNestedMessages) (*baseapptestutil.MsgCreateNestedMessagesResponse, error) { +func (n NestedMessagesServerImpl) Check(ctx context.Context, message *baseapptestutil.MsgNestedMessages) (*baseapptestutil.MsgCreateNestedMessagesResponse, error) { sdkCtx := sdk.UnwrapSDKContext(ctx) cdc := codectestutil.CodecOptions{}.NewCodec() baseapptestutil.RegisterInterfaces(cdc.InterfaceRegistry()) diff --git a/x/bank/v2/keeper/keeper_test.go b/x/bank/v2/keeper/keeper_test.go index 47a946c1ffa..b23468877e4 100644 --- a/x/bank/v2/keeper/keeper_test.go +++ b/x/bank/v2/keeper/keeper_test.go @@ -85,7 +85,7 @@ func (suite *KeeperTestSuite) SetupTest() { suite.addressCodec = ac } -func (suite *KeeperTestSuite) TestSendCoins_Acount_To_Account() { +func (suite *KeeperTestSuite) TestSendCoins_Account_To_Account() { ctx := suite.ctx require := suite.Require() balances := sdk.NewCoins(newFooCoin(100), newBarCoin(50)) @@ -110,7 +110,7 @@ func (suite *KeeperTestSuite) TestSendCoins_Acount_To_Account() { require.Equal(acc1BarBalance.Amount, math.NewInt(10)) } -func (suite *KeeperTestSuite) TestSendCoins_Acount_To_Module() { +func (suite *KeeperTestSuite) TestSendCoins_Account_To_Module() { ctx := suite.ctx require := suite.Require() balances := sdk.NewCoins(newFooCoin(100), newBarCoin(50))