Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Warehime committed Jan 13, 2025
1 parent b948fea commit 06b0abf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/modules.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package gaia

import (
lsmtypes "github.com/cosmos/gaia/v22/x/lsm/types"
feemarket "github.com/skip-mev/feemarket/x/feemarket"
feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types"

Expand Down Expand Up @@ -63,6 +62,7 @@ import (
wasm "github.com/CosmWasm/wasmd/x/wasm"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"

lsmtypes "github.com/cosmos/gaia/v22/x/lsm/types"
"github.com/cosmos/gaia/v22/x/metaprotocols"
metaprotocolstypes "github.com/cosmos/gaia/v22/x/metaprotocols/types"
)
Expand Down
9 changes: 8 additions & 1 deletion tests/e2e/e2e_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -762,12 +762,18 @@ func (s *IntegrationTestSuite) writeLiquidStakingParamsUpdateProposal(c *chain,
"max_entries": %d,
"historical_entries": %d,
"bond_denom": "%s",
"min_commission_rate": "%s",
"min_commission_rate": "%s"
},
{
"@type": "/gaia.lsm.v1beta1.MsgUpdateParams",
"authority": "%s",
"params": {
"validator_bond_factor": "%s",
"global_liquid_staking_cap": "%s",
"validator_liquid_staking_cap": "%s"
}
}
}
],
"metadata": "ipfs://CID",
"deposit": "100uatom",
Expand All @@ -783,6 +789,7 @@ func (s *IntegrationTestSuite) writeLiquidStakingParamsUpdateProposal(c *chain,
oldParams.HistoricalEntries,
oldParams.BondDenom,
oldParams.MinCommissionRate,
govAuthority,
math.LegacyNewDec(250), // validator bond factor
math.LegacyNewDecWithPrec(25, 2), // 25 global_liquid_staking_cap
math.LegacyNewDecWithPrec(50, 2), // 50 validator_liquid_staking_cap
Expand Down
4 changes: 2 additions & 2 deletions x/lsm/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ $ %s tx lsm transfer-tokenize-share-record 1 %s1gghjut3ccd8ay0zduzj64hwre2fxs9ld

msg := &types.MsgTransferTokenizeShareRecord{
Sender: clientCtx.GetFromAddress().String(),
TokenizeShareRecordId: uint64(recordID), //nolint:gosec
TokenizeShareRecordId: uint64(recordID),
NewOwner: ownerAddr,
}

Expand Down Expand Up @@ -326,7 +326,7 @@ $ %s tx distribution withdraw-tokenize-share-rewards 1 --from mykey
return err
}

msg := types.NewMsgWithdrawTokenizeShareRecordReward(ownerAddr, uint64(recordID)) //nolint:gosec
msg := types.NewMsgWithdrawTokenizeShareRecordReward(ownerAddr, uint64(recordID))

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
Expand Down
2 changes: 1 addition & 1 deletion x/lsm/types/tokenize_share_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ func (r TokenizeShareRecord) GetModuleAddress() sdk.AccAddress {
}

func (r TokenizeShareRecord) GetShareTokenDenom() string {
return fmt.Sprintf("%s/%s", strings.ToLower(r.Validator), strconv.Itoa(int(r.Id))) //nolint:gosec
return fmt.Sprintf("%s/%s", strings.ToLower(r.Validator), strconv.Itoa(int(r.Id)))
}

0 comments on commit 06b0abf

Please sign in to comment.