From 4a6c1c26d19968a19ee5e514829a45568d93770b Mon Sep 17 00:00:00 2001 From: sleepy ramen Date: Mon, 1 Aug 2022 12:55:10 +0200 Subject: [PATCH] fix: duplicate import (#12778) ## Description fix the error ``` simapp/test_helpers.go:27:2: ST1019: package "github.com/cosmos/cosmos-sdk/server/types" is being imported more than once (stylecheck) "github.com/cosmos/cosmos-sdk/server/types" ^ simapp/test_helpers.go:28:2: ST1019(related information): other import of "github.com/cosmos/cosmos-sdk/server/types" (stylecheck) servertypes "github.com/cosmos/cosmos-sdk/server/types" ``` --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [x] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting)) - [ ] provided a link to the relevant issue or specification - [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/building-modules) - [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing) - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) --- simapp/test_helpers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/simapp/test_helpers.go b/simapp/test_helpers.go index bcf8051752..3078c644c0 100644 --- a/simapp/test_helpers.go +++ b/simapp/test_helpers.go @@ -24,7 +24,6 @@ import ( cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" pruningtypes "github.com/cosmos/cosmos-sdk/pruning/types" "github.com/cosmos/cosmos-sdk/server" - "github.com/cosmos/cosmos-sdk/server/types" servertypes "github.com/cosmos/cosmos-sdk/server/types" "github.com/cosmos/cosmos-sdk/testutil/mock" "github.com/cosmos/cosmos-sdk/testutil/network" @@ -41,7 +40,7 @@ import ( type SetupOptions struct { Logger log.Logger DB *dbm.MemDB - AppOpts types.AppOptions + AppOpts servertypes.AppOptions } func setup(withGenesis bool, invCheckPeriod uint) (*SimApp, GenesisState) {