Skip to content

Commit

Permalink
more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
spoo-bar committed Nov 6, 2023
1 parent 008d7f8 commit 2b18d91
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions x/globalfee/ante/fee_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (s *AnteHandlerTestSuite) SetupContractWithContractAuth(senderAddr string,
}

func (s *AnteHandlerTestSuite) CreateTestTx(privs []cryptotypes.PrivKey, accNums []uint64, accSeqs []uint64, chainID string) (xauthsigning.Tx, error) {
var sigsV2 []signing.SignatureV2
var sigsV2 []signing.SignatureV2 //nolint:golint,prealloc
for i, priv := range privs {
sigV2 := signing.SignatureV2{
PubKey: priv.PubKey(),
Expand Down Expand Up @@ -202,7 +202,7 @@ func storeContract(ctx sdk.Context, msgServer wasmtypes.MsgServer, creator strin
return res.CodeID, nil
}

func getTestAccount() (privateKey secp256k1.PrivKey, publicKey crypto.PubKey, accountAddress sdk.AccAddress) {
func getTestAccount() (privateKey secp256k1.PrivKey, publicKey crypto.PubKey, accountAddress sdk.AccAddress) { //nolint:golint,unparam
privateKey = secp256k1.GenPrivKey()
publicKey = privateKey.PubKey()
accountAddress = sdk.AccAddress(publicKey.Address())
Expand Down
3 changes: 2 additions & 1 deletion x/tokenfactory/keeper/admins_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (suite *KeeperTestSuite) TestAdminMsgs() {

// Test burning from own account
_, err = suite.msgServer.Burn(sdk.WrapSDKContext(suite.Ctx), types.NewMsgBurn(suite.TestAccs[0].String(), sdk.NewInt64Coin(suite.defaultDenom, 5)))
addr0bal -= 5
addr0bal -= 5 //nolint:golint,ineffassign
suite.Require().NoError(err)
suite.Require().True(bankKeeper.GetBalance(suite.Ctx, suite.TestAccs[1], suite.defaultDenom).Amount.Int64() == addr1bal)

Expand Down Expand Up @@ -381,6 +381,7 @@ func (suite *KeeperTestSuite) TestSetDenomMetaData() {
},
} {
suite.Run(fmt.Sprintf("Case %s", tc.desc), func() {
tc := tc
bankKeeper := suite.App.BankKeeper
res, err := suite.msgServer.SetDenomMetadata(sdk.WrapSDKContext(suite.Ctx), &tc.msgSetDenomMetadata)
if tc.expectedPass {
Expand Down
1 change: 1 addition & 0 deletions x/tokenfactory/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ func (suite *KeeperTestSuite) TestSetDenomMetaDataMsg() {
},
} {
suite.Run(fmt.Sprintf("Case %s", tc.desc), func() {
tc := tc
ctx := suite.Ctx.WithEventManager(sdk.NewEventManager())
suite.Require().Equal(0, len(ctx.EventManager().Events()))
// Test set denom metadata message
Expand Down

0 comments on commit 2b18d91

Please sign in to comment.