8000 chore(deps): bump cosmos-sdk to v0.47 & ibc-go to v7 by GAtom22 · Pull Request #1662 · evmos/evmos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore(deps): bump cosmos-sdk to v0.47 & ibc-go to v7 #1662

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

Merged
merged 75 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
40b71e3
update go.mod & fix some issues
GAtom22 Jul 21, 2023
553ed7b
fix some more issues
GAtom22 Jul 21, 2023
3e2db98
fix some more issues on app and root
GAtom22 Jul 21, 2023
1fe52be
more issues fixed
GAtom22 Jul 21, 2023
db3e981
add more fixes
GAtom22 Jul 21, 2023
e313ad6
some more fixes
GAtom22 Jul 21, 2023
d1c7d5d
more fixes
GAtom22 Jul 21, 2023
9371306
fix some deps
GAtom22 Jul 24, 2023
2f402c0
fix more deps
GAtom22 Jul 24, 2023
3d5f727
fix some lint issues
GAtom22 Jul 24, 2023
d54e503
make proto-all
GAtom22 Jul 24, 2023
4c7283b
add chain ID on NewEvmos calls
GAtom22 Jul 24, 2023
af50e6d
remove deprecated RandomizedParams
GAtom22 Jul 26, 2023
a89c4d6
remove empty AppModule.ProposalContents
GAtom22 Jul 26, 2023
ee7f44a
replace /gogo/protobuf with /cosmos/gogoproto import in files
GAtom22 Jul 26, 2023
d9c4000
add store upgrade for crisis mod
GAtom22 Jul 26, 2023
8ac288a
add consensus mod upgrade logic
GAtom22 Jul 26, 2023
c713137
add consensus appModule to module manager
GAtom22 Jul 26, 2023
3ee2360
add missing chain ID on test_helper.Setup func
GAtom22 Jul 26, 2023
326880a
change govGenState params
GAtom22 Jul 26, 2023 8000
2092029
update implements_interface with corresponding replacement
GAtom22 Jul 26, 2023
cba99de
fix lint issues
GAtom22 Jul 26, 2023
70d2647
remove broken link
GAtom22 Jul 27, 2023
93098e4
fix staking keeper hooks
GAtom22 Jul 27, 2023
aeb39fd
add chain ID to Setup test helper func
GAtom22 Jul 27, 2023
46bb559
fix lint issues
GAtom22 Jul 27, 2023
a81ad5e
fix check events func on precompiles test suite
GAtom22 Jul 27, 2023
8bd8e94
fix vesting account test suite
GAtom22 Jul 27, 2023
2b1ea45
add legacy router in gov keeper
GAtom22 Jul 27, 2023
550dcd5
remove chain ID param in test util func
GAtom22 Jul 27, 2023
c64c37e
fix TestRejectMsgsInAuthz in ante tests
GAtom22 Jul 27, 2023
6c033af
update ibc-go dep to fix ante handler tests
GAtom22 Jul 27, 2023
f0331b2
fix md lint issues
GAtom22 Jul 27, 2023
5ae38a9
add ibc-go v7 upgrade logic
GAtom22 Jul 28, 2023
f3dd291
add tm light client registration
GAtom22 Jul 28, 2023
3b3e5e2
fix fees in SignAndDeliver test helper func
GAtom22 Jul 28, 2023
6683b70
fix chainID setup in ibc tests
GAtom22 Jul 28, 2023
20b6e60
fix erc20 integration test setup
GAtom22 Jul 28, 2023
9160f15
remove unnecessary const in rpc backend test
GAtom22 Jul 28, 2023
e3db8c7
fix rpc backend conditional
GAtom22 Jul 28, 2023
c30cd57
fix lint issues
GAtom22 Jul 28, 2023
20481d7
fix vesting tests
GAtom22 Jul 28, 2023
3ff9728
update changelog
GAtom22 Jul 28, 2023
30193b4
add error handling
GAtom22 Jul 28, 2023
9c49b86
update deps based on review ci flow
GAtom22 Jul 28, 2023
d30b0aa
add back proto-lint command
GAtom22 Jul 28, 2023
2d8f9be
add ll to protogen
GAtom22 Jul 28, 2023
84b28f7
fix comment with local cmd
GAtom22 Jul 28, 2023
42b080a
update buf.gen yaml
GAtom22 Jul 28, 2023
b6c59e8
add -o flag to proto gen script
GAtom22 Jul 28, 2023
0a70f61
Revert "add -o flag to proto gen script"
GAtom22 Jul 28, 2023
b223b19
add sudo to make proto-gen in gh actions
GAtom22 Jul 28, 2023
da7037e
remove echo file in protogen script
GAtom22 Jul 28, 2023
346af57
fix curl version in dockerfile
GAtom22 Jul 28, 2023
3b6e6b6
Merge branch 'main' into GAtom22/sdk-47
GAtom22 Jul 28, 2023
1ea3287
add some changes to fix e2e tests
GAtom22 Jul 29, 2023
4f78534
fix lint issues
GAtom22 Jul 31, 2023
75993b8
remove ibc transfer from module migration on upgrade
GAtom22 Jul 31, 2023
5c9ce45
ibc-transfer: register app migration from v2 to v3
GAtom22 Jul 31, 2023
87611f5
check if block params are nil in consensus param
GAtom22 Jul 31, 2023
c14bd53
fix makefile localnet cmds
GAtom22 Jul 31, 2023
f94b39a
enable APIs on e2e test nodes
GAtom22 Jul 31, 2023
28806e5
fix gitleaks lint
GAtom22 Aug 4 8000 , 2023
0e6d055
Merge branch 'main' into GAtom22/sdk-47
GAtom22 Aug 4, 2023
61c1f36
fix clients and types on new files
GAtom22 Aug 4, 2023
b5467c9
fix lint issues
GAtom22 Aug 4, 2023
2c64995
update init-node.sh to replace localhost in config file
GAtom22 Aug 7, 2023
ef7deb2
clean up unnecessary funcs in module.go files
GAtom22 Aug 7, 2023
898785c
Merge branch 'main' into GAtom22/sdk-47
GAtom22 Aug 7, 2023
8772528
fix missing imports
GAtom22 Aug 7, 2023
197d4e6
make proto-all
GAtom22 Aug 7, 2023
9e03255
use root on proto make cmds
GAtom22 Aug 7, 2023
ca00198
remove dependency from regen-network gogoproto
Aug 10, 2023
75ff497
nit: combine related comments
Aug 10, 2023
98dea66
Merge branch 'main' into GAtom22/sdk-47
MalteHerrmann Aug 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ Ref: https://keepachangelog.com/en/1.0.0/

## Unreleased

### State Machine Breaking

- (deps) [#1662](https://github.com/evmos/evmos/pull/1662) Bump Cosmos-SDK to v0.47.4 and ibc-go to v7.2.0.

### Improvements

- (cli) [#1647](https://github.com/evmos/evmos/pull/1647) Update defaults on `evmosd start` flags.
Expand Down
35 changes: 18 additions & 17 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
# Evmos Contributor Guidelines

<!-- markdown-link-check-disable -->
* [General Procedure](#general_procedure)
* [Architecture Decision Records (ADR)](#adr)
* [Forking](#forking)
* [Dependencies](#dependencies)
* [Protobuf](#protobuf)
* [Development Procedure](#dev_procedure)
* [Testing](#testing)
* [Updating Documentation](#updating_doc)
* [Branching Model and Release](#braching_model_and_release)
* [Commit messages](#commit_messages)
* [PR Targeting](#pr_targeting)
* [Pull Requests](#pull_requests)
* [Process for reviewing PRs](#reviewing_prs)
* [Pull Merge Procedure](#pull_merge_procedure)
* [Release Procedure](#release_procedure)
- [Evmos Contributor Guidelines](#evmos-contributor-guidelines)
- [General Procedure](#general-procedure)
- [Architecture Decision Records (ADR)](#architecture-decision-records-adr)
- [Forking](#forking)
- [Dependencies](#dependencies)
- [Protobuf](#protobuf)
- [Development Procedure](#development-procedure)
- [Testing](#testing)
- [Updating Documentation](#updating-documentation)
- [Branching Model and Release](#branching-model-and-release)
- [Commit messages](#commit-messages)
- [PR Targeting](#pr-targeting)
- [Pull Requests](#pull-requests)
- [Process for reviewing PRs](#process-for-reviewing-prs)
- [Pull Merge Procedure](#pull-merge-procedure)
- [Release Procedure](#release-procedure)
<!-- markdown-link-check-enable -->

## <span id="general_procedure">General Procedure</span>
Expand Down Expand Up @@ -73,7 +74,7 @@ Check out our [good first issues](https://github.com/evmos/evmos/issues?q=label%
## <span id="adr">Architecture Decision Records (ADR)</span>

When proposing an architecture decision for Evmos,
please create an [ADR](https://github.com/evmos/evmos/blob/main/docs/architecture/README.md)
please create an ADR
so further discussions can be made.
We are following this process so all involved parties are in agreement
before any party begins coding the proposed implementation.
Expand Down Expand Up @@ -143,7 +144,7 @@ on `go mod tidy -v`.
## <span id="protobuf">Protobuf</span>

We use [Protocol Buffers](https://developers.google.com/protocol-buffers) along
with [gogoproto](https://github.com/gogo/protobuf) to generate code for use in Evmos.
with [gogoproto](https://github.com/cosmos/protobuf) to generate code for use in Evmos.

For deterministic behavior around Protobuf tooling, everything is containerized using Docker. Make sure to have Docker
installed on your machine, or head to [Docker's website](https://docs.docker.com/get-docker/) to install it.
Expand Down
38 changes: 8 additions & 30 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PACKAGES_NOSIMULATION=$(shell go list ./... | grep -v '/simulation')
VERSION ?= $(shell echo $(shell git describe --tags --always) | sed 's/^v//')
TMVERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::')
TMVERSION := $(shell go list -m github.com/cometbft/cometbft | sed 's:.* ::')
COMMIT := $(shell git log -1 --format='%H')
LEDGER_ENABLED ?= true
BINDIR ?= $(GOPATH)/bin
Expand Down Expand Up @@ -72,7 +72,7 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=evmos \
-X github.com/cosmos/cosmos-sdk/version.AppName=$(EVMOS_BINARY) \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-X github.com/tendermint/tendermint/version.TMCoreSemVer=$(TMVERSION)
-X github.com/cometbft/cometbft/version.TMCoreSemVer=$(TMVERSION)

# DB backend selection
ifeq (cleveldb,$(findstring cleveldb,$(COSMOS_BUILD_OPTIONS)))
Expand Down Expand Up @@ -382,30 +382,9 @@ format:
### Protobuf ###
###############################################################################

# ------
# NOTE: Link to the tendermintdev/sdk-proto-gen docker images:
# https://hub.docker.com/r/tendermintdev/sdk-proto-gen/tags
#
protoVer=v0.7
protoImageName=tendermintdev/sdk-proto-gen:$(protoVer)
protoImage=$(DOCKER) run --network host --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)
# ------
# NOTE: cosmos/proto-builder image is needed because clang-format is not installed
# on the tendermintdev/sdk-proto-gen docker image.
# Link to the cosmos/proto-builder docker images:
# https://github.com/cosmos/cosmos-sdk/pkgs/container/proto-builder
#
protoCosmosVer=0.11.2
protoCosmosName=ghcr.io/cosmos/proto-builder:$(protoCosmosVer)
protoCosmosImage=$(DOCKER) run --network host --rm -v $(CURDIR):/workspace --workdir /workspace $(protoCosmosName)
# ------
# NOTE: Link to the yoheimuta/protolint docker images:
# https://hub.docker.com/r/yoheimuta/protolint/tags
#
protolintVer=0.42.2
protolintName=yoheimuta/protolint:$(protolintVer)
protolintImage=$(DOCKER) run --network host --rm -v $(CURDIR):/workspace --workdir /workspace $(protolintName)

protoVer=0.11.6
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace --user 0 $(protoImageName)

# ------
# NOTE: If you are experiencing problems running these commands, try deleting
Expand All @@ -421,16 +400,15 @@ proto-swagger-gen:
@echo "Downloading Protobuf dependencies"
@make proto-download-deps
@echo "Generating Protobuf Swagger"
$(protoCosmosImage) sh ./scripts/protoc-swagger-gen.sh
$(protoImage) sh ./scripts/protoc-swagger-gen.sh

proto-format:
@echo "Formatting Protobuf files"
$(protoCosmosImage) find ./ -name *.proto -exec clang-format -i {} \;
$(protoImage) find ./ -name *.proto -exec clang-format -i {} \;

# NOTE: The linter configuration lives in .protolint.yaml
proto-lint:
@echo "Linting Protobuf files"
$(protolintImage) lint ./proto
@$(protoImage) buf lint --error-format=json

proto-check-breaking:
@echo "Checking Protobuf files for breaking changes"
Expand Down
20 changes: 17 additions & 3 deletions app/ante/cosmos/authz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package cosmos_test

import (
"fmt"
"math/big"
"testing"
"time"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types"

sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
Expand All @@ -15,6 +16,7 @@ import (
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"

ethtypes "github.com/ethereum/go-ethereum/core/types"
cosmosante "github.com/evmos/evmos/v14/app/ante/cosmos"
testutil "github.com/evmos/evmos/v14/testutil"
utiltx "github.com/evmos/evmos/v14/testutil/tx"
Expand Down Expand Up @@ -280,6 +282,18 @@ func (suite *AnteTestSuite) TestRejectMsgsInAuthz() {

distantFuture := time.Date(9000, 1, 1, 0, 0, 0, 0, time.UTC)

// create a dummy MsgEthereumTx for the test
// otherwise throws error that cannot unpack tx data
msgEthereumTx := evmtypes.NewTx(&evmtypes.EvmTxArgs{
ChainID: big.NewInt(9000),
Nonce: 0,
GasLimit: 1000000,
GasFeeCap: suite.app.FeeMarketKeeper.GetBaseFee(suite.ctx),
GasTipCap: big.NewInt(1),
Input: nil,
Accesses: &ethtypes.AccessList{},
})

newMsgGrant := func(msgTypeUrl string) *authz.MsgGrant {
msg, err := authz.NewMsgGrant(
testAddresses[0],
Expand Down Expand Up @@ -326,7 +340,7 @@ func (suite *AnteTestSuite) TestRejectMsgsInAuthz() {
testAddresses[3],
sdk.NewCoins(sdk.NewInt64Coin(evmtypes.DefaultEVMDenom, 100e6)),
),
&evmtypes.MsgEthereumTx{},
msgEthereumTx,
},
),
},
Expand All @@ -339,7 +353,7 @@ func (suite *AnteTestSuite) TestRejectMsgsInAuthz() {
testAddresses[1],
2,
[]sdk.Msg{
&evmtypes.MsgEthereumTx{},
msgEthereumTx,
},
),
},
Expand Down
1 change: 1 addition & 0 deletions app/ante/cosmos/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ type BankKeeper interface {
GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
SendCoins(ctx sdk.Context, from, to sdk.AccAddress, amt sdk.Coins) error
SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error
}
11 changes: 6 additions & 5 deletions app/ante/cosmos/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"github.com/stretchr/testify/suite"

sdkmath "cosmossdk.io/math"
"cosmossdk.io/simapp"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/cosmos/cosmos-sdk/client"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
"github.com/cosmos/cosmos-sdk/simapp"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"

"github.com/ethereum/go-ethereum/common"
ethtypes "github.com/ethereum/go-ethereum/core/types"
Expand Down Expand Up @@ -93,14 +93,15 @@ func (suite *AnteTestSuite) SetupTest() {
suite.ctx = suite.app.BaseApp.NewContext(checkTx, tmproto.Header{Height: 2, ChainID: chainID, Time: time.Now().UTC()})
suite.ctx = suite.ctx.WithMinGasPrices(sdk.NewDecCoins(sdk.NewDecCoin(utils.BaseDenom, sdk.OneInt())))
suite.ctx = suite.ctx.WithBlockGasMeter(sdk.NewGasMeter(1000000000000000000))
suite.app.EvmKeeper.WithChainID(suite.ctx)

stakingParams := suite.app.StakingKeeper.GetParams(suite.ctx)
stakingParams.BondDenom = utils.BaseDenom
suite.app.StakingKeeper.SetParams(suite.ctx, stakingParams)
err = suite.app.StakingKeeper.SetParams(suite.ctx, stakingParams)
suite.Require().NoError(err)

infCtx := suite.ctx.WithGasMeter(sdk.NewInfiniteGasMeter())
suite.app.AccountKeeper.SetParams(infCtx, authtypes.DefaultParams())
err = suite.app.AccountKeeper.SetParams(infCtx, authtypes.DefaultParams())
suite.Require().NoError(err)

encodingConfig := encoding.MakeConfig(app.ModuleBasics)
// We're using TestMsg amino encoding in some tests, so register it here.
Expand Down
4 changes: 2 additions & 2 deletions app/ante/evm/fee_checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (

"github.com/stretchr/testify/require"

"github.com/cometbft/cometbft/libs/log"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
Expand All @@ -14,8 +16,6 @@ import (
"github.com/evmos/evmos/v14/encoding"
"github.com/evmos/evmos/v14/types"
evmtypes "github.com/evmos/evmos/v14/x/evm/types"
"github.com/tendermint/tendermint/libs/log"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
)

var _ DynamicFeeEVMKeeper = MockEVMKeeper{}
Expand Down
11 changes: 6 additions & 5 deletions app/ante/evm/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"testing"
"time"

tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/stretchr/testify/suite"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"

sdkmath "cosmossdk.io/math"
"cosmossdk.io/simapp"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/simapp"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
Expand Down Expand Up @@ -76,15 +76,16 @@ func (suite *AnteTestSuite) SetupTest() {
suite.ctx = suite.app.BaseApp.NewContext(checkTx, tmproto.Header{Height: 2, ChainID: utils.TestnetChainID + "-1", Time: time.Now().UTC()})
suite.ctx = suite.ctx.WithMinGasPrices(sdk.NewDecCoins(sdk.NewDecCoin(evmtypes.DefaultEVMDenom, sdk.OneInt())))
suite.ctx = suite.ctx.WithBlockGasMeter(sdk.NewGasMeter(1000000000000000000))
suite.app.EvmKeeper.WithChainID(suite.ctx)

// set staking denomination to Evmos denom
params := suite.app.StakingKeeper.GetParams(suite.ctx)
params.BondDenom = utils.BaseDenom
suite.app.StakingKeeper.SetParams(suite.ctx, params)
err := suite.app.StakingKeeper.SetParams(suite.ctx, params)
suite.Require().NoError(err)

infCtx := suite.ctx.WithGasMeter(sdk.NewInfiniteGasMeter())
suite.app.AccountKeeper.SetParams(infCtx, authtypes.DefaultParams())
err = suite.app.AccountKeeper.SetParams(infCtx, authtypes.DefaultParams())
suite.Require().NoError(err)

encodingConfig := encoding.MakeConfig(app.ModuleBasics)
// We're using TestMsg amino encoding in some tests, so register it here.
Expand Down
6 changes: 3 additions & 3 deletions app/ante/evm/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
authz "github.com/cosmos/cosmos-sdk/x/authz"
ibctypes "github.com/cosmos/ibc-go/v6/modules/apps/transfer/types"
ibcclienttypes "github.com/cosmos/ibc-go/v6/modules/core/02-client/types"
ibctypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
"github.com/evmos/evmos/v14/crypto/ethsecp256k1"

"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
Expand Down Expand Up @@ -321,7 +321,7 @@ func (suite *AnteTestSuite) CreateTestEIP712SubmitProposalV1(from sdk.AccAddress
proposalMsgs,
sdk.NewCoins(sdk.NewCoin(evmtypes.DefaultEVMDenom, sdkmath.NewInt(100))),
sdk.MustBech32ifyAddressBytes(sdk.GetConfig().GetBech32AccountAddrPrefix(), from.Bytes()),
"Metadata",
"Metadata", "title", "summary",
)

suite.Require().NoError(err)
Expand Down
6 changes: 3 additions & 3 deletions app/ante/handler_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import (
"github.com/cosmos/cosmos-sdk/x/auth/ante"
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
ibcante "github.com/cosmos/ibc-go/v6/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v6/modules/core/keeper"
anteutils "github.com/evmos/evmos/v14/app/ante/utils"
ibcante "github.com/cosmos/ibc-go/v7/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper"

cosmosante "github.com/evmos/evmos/v14/app/ante/cosmos"
evmante "github.com/evmos/evmos/v14/app/ante/evm"
anteutils "github.com/evmos/evmos/v14/app/ante/utils"
evmtypes "github.com/evmos/evmos/v14/x/evm/types"

sdkvesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
Expand Down
5 changes: 3 additions & 2 deletions app/ante/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ func (suite *AnteTestSuite) SetupTest() {
consAddress := sdk.ConsAddress(privCons.PubKey().Address())

isCheckTx := false
suite.app = app.Setup(isCheckTx, feemarkettypes.DefaultGenesisState())
chainID := utils.MainnetChainID + "-1"
suite.app = app.Setup(isCheckTx, feemarkettypes.DefaultGenesisState(), chainID)
suite.Require().NotNil(suite.app.AppCodec())

header := testutil.NewHeader(
1, time.Now().UTC(), utils.MainnetChainID+"-1", consAddress, nil, nil)
1, time.Now().UTC(), chainID, consAddress, nil, nil)
suite.ctx = suite.app.BaseApp.NewContext(isCheckTx, header)

suite.denom = utils.BaseDenom
Expand Down
11 changes: 6 additions & 5 deletions app/ante/utils/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"testing"
"time"

tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/stretchr/testify/suite"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"

sdkmath "cosmossdk.io/math"
"cosmossdk.io/simapp"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/simapp"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
Expand Down Expand Up @@ -78,10 +78,12 @@ func (suite *AnteTestSuite) SetupTest() {
// set staking denomination to Evmos denom
params := suite.app.StakingKeeper.GetParams(suite.ctx)
params.BondDenom = utils.BaseDenom
suite.app.StakingKeeper.SetParams(suite.ctx, params)
err := suite.app.StakingKeeper.SetParams(suite.ctx, params)
suite.Require().NoError(err)

infCtx := suite.ctx.WithGasMeter(sdk.NewInfiniteGasMeter())
suite.app.AccountKeeper.SetParams(infCtx, authtypes.DefaultParams())
err = suite.app.AccountKeeper.SetParams(infCtx, authtypes.DefaultParams())
suite.Require().NoError(err)

encodingConfig := encoding.MakeConfig(app.ModuleBasics)
// We're using TestMsg amino encoding in some tests, so register it here.
Expand Down Expand Up @@ -109,7 +111,6 @@ func (suite *AnteTestSuite) SetupTest() {
suite.anteHandler = anteHandler
suite.ethSigner = types.LatestSignerForChainID(suite.app.EvmKeeper.ChainID())

var err error
suite.ctx, err = testutil.Commit(suite.ctx, suite.app, time.Second*0, nil)
suite.Require().NoError(err)
}
Expand Down
Loading
0