Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix formatting #269

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions app/encoding_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package app_test

import (
"github.com/terra-money/core/v2/app"
"github.com/terra-money/core/v2/app/test_helpers"

banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/terra-money/core/v2/app"
"github.com/terra-money/core/v2/app/test_helpers"
)

type AppCodecsTestSuite struct {
Expand All @@ -16,7 +17,7 @@ func (acts *AppCodecsTestSuite) TestCodecs() {
// Setting up the app
acts.Setup()

// generating the encoding config to assert agains
// generating the encoding config to assert against
encCfg := app.MakeEncodingConfig()

// Validate the encoding config have been configured as expected for the App
Expand Down
4 changes: 3 additions & 1 deletion app/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import (

abci "github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/log"
"github.com/terra-money/core/v2/app/test_helpers"

codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
"github.com/terra-money/core/v2/app/test_helpers"

ibcfee "github.com/cosmos/ibc-go/v7/modules/apps/29-fee"
"github.com/golang/mock/gomock"
Expand Down Expand Up @@ -55,6 +56,7 @@ import (
"github.com/CosmWasm/wasmd/x/wasm"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
tmtypes "github.com/cometbft/cometbft/types"

authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
Expand Down
3 changes: 2 additions & 1 deletion app/post/mocks/post_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/simulation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/terra-money/core/v2/app/keepers"

wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"

simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
simulationtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
Expand Down
1 change: 1 addition & 0 deletions cmd/terrad/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"

serverconfig "github.com/cosmos/cosmos-sdk/server/config"
)

Expand Down
22 changes: 11 additions & 11 deletions x/feeshare/post/post_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (suite *AnteTestSuite) TestCalculateFee() {
func (suite *AnteTestSuite) TestPostHandler() {
suite.Setup()

// Create a mocked next post hanlder to assert the function being called.
// Create a mocked next post handler to assert the function being called.
ctrl := gomock.NewController(suite.T())
mockedPostDecorator := mocks.NewMockPostDecorator(ctrl)

Expand Down Expand Up @@ -234,7 +234,7 @@ func (suite *AnteTestSuite) TestPostHandler() {
// Remove all events from the context to assert the events being added correctly.
suite.Ctx = suite.Ctx.WithEventManager(sdk.NewEventManager())

// Assert the next hanlder is called once
// Assert the next handler is called once
mockedPostDecorator.
EXPECT().
PostHandle(gomock.Any(), gomock.Any(), false, true, gomock.Any()).
Expand Down Expand Up @@ -294,7 +294,7 @@ func (suite *AnteTestSuite) TestPostHandler() {
func (suite *AnteTestSuite) TestDisabledPostHandle() {
suite.Setup()

// Create a mocked next post hanlder to assert the function being called.
// Create a mocked next post handler to assert the function being called.
ctrl := gomock.NewController(suite.T())
mockedPostDecorator := mocks.NewMockPostDecorator(ctrl)

Expand All @@ -319,7 +319,7 @@ func (suite *AnteTestSuite) TestDisabledPostHandle() {
suite.App.Keepers.WasmKeeper,
)

// Assert the next hanlder is called once
// Assert the next handler is called once
mockedPostDecorator.
EXPECT().
PostHandle(gomock.Any(), gomock.Any(), false, true, gomock.Any()).
Expand All @@ -341,7 +341,7 @@ func (suite *AnteTestSuite) TestDisabledPostHandle() {
func (suite *AnteTestSuite) TestWithZeroFeesPostHandle() {
suite.Setup()

// Create a mocked next post hanlder to assert the function being called.
// Create a mocked next post handler to assert the function being called.
ctrl := gomock.NewController(suite.T())
mockedPostDecorator := mocks.NewMockPostDecorator(ctrl)

Expand All @@ -355,7 +355,7 @@ func (suite *AnteTestSuite) TestWithZeroFeesPostHandle() {
suite.App.Keepers.WasmKeeper,
)

// Assert the next hanlder is called once
// Assert the next handler is called once
mockedPostDecorator.
EXPECT().
PostHandle(gomock.Any(), gomock.Any(), false, true, gomock.Any()).
Expand All @@ -377,7 +377,7 @@ func (suite *AnteTestSuite) TestWithZeroFeesPostHandle() {
func (suite *AnteTestSuite) TestPostHandlerWithEmptySmartContractStore() {
suite.Setup()

// Create a mocked next post hanlder to assert the function being called.
// Create a mocked next post handler to assert the function being called.
ctrl := gomock.NewController(suite.T())
mockedPostDecorator := mocks.NewMockPostDecorator(ctrl)

Expand Down Expand Up @@ -405,7 +405,7 @@ func (suite *AnteTestSuite) TestPostHandlerWithEmptySmartContractStore() {
suite.App.Keepers.WasmKeeper,
)

// Assert the next hanlder is called once
// Assert the next handler is called once
mockedPostDecorator.
EXPECT().
PostHandle(gomock.Any(), gomock.Any(), false, true, gomock.Any()).
Expand All @@ -427,7 +427,7 @@ func (suite *AnteTestSuite) TestPostHandlerWithEmptySmartContractStore() {
func (suite *AnteTestSuite) TestPostHandlerNoSmartContractExecuted() {
suite.Setup()

// Create a mocked next post hanlder to assert the function being called.
// Create a mocked next post handler to assert the function being called.
ctrl := gomock.NewController(suite.T())
mockedPostDecorator := mocks.NewMockPostDecorator(ctrl)

Expand Down Expand Up @@ -459,7 +459,7 @@ func (suite *AnteTestSuite) TestPostHandlerNoSmartContractExecuted() {
suite.App.Keepers.WasmKeeper,
)

// Assert the next hanlder is called once
// Assert the next handler is called once
mockedPostDecorator.
EXPECT().
PostHandle(gomock.Any(), gomock.Any(), false, true, gomock.Any()).
Expand All @@ -481,7 +481,7 @@ func (suite *AnteTestSuite) TestPostHandlerNoSmartContractExecuted() {
func (suite *AnteTestSuite) TestPostHandlerWithInvalidContractAddrOnExecution() {
suite.Setup()

// Create a mocked next post hanlder to assert the function being called.
// Create a mocked next post handler to assert the function being called.
ctrl := gomock.NewController(suite.T())
mockedPostDecorator := mocks.NewMockPostDecorator(ctrl)

Expand Down
Loading