Skip to content

Commit

Permalink
fix lint 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Aug 9, 2023
1 parent dbc3220 commit 5eb2212
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/ante/vesting.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ var _ sdk.AnteDecorator = VestingAccountDecorator{}

// VestingAccountDecorator blocks vesting messages from reaching the mempool
type VestingAccountDecorator struct {
disabledMsgTypeUrls []string
disabledMsgTypeURLs []string
}

// NewVestingAccountDecorator creates a decorator to block vesting messages from reaching the mempool
func NewVestingAccountDecorator() VestingAccountDecorator {
return VestingAccountDecorator{
disabledMsgTypeUrls: []string{
disabledMsgTypeURLs: []string{
sdk.MsgTypeURL(&vesting.MsgCreateVestingAccount{}),
sdk.MsgTypeURL(&vesting.MsgCreatePermanentLockedAccount{}),
sdk.MsgTypeURL(&vesting.MsgCreatePeriodicVestingAccount{}),
Expand All @@ -35,7 +35,7 @@ func (vad VestingAccountDecorator) AnteHandle(
for _, msg := range tx.GetMsgs() {
typeURL := sdk.MsgTypeURL(msg)

for _, disabledTypeUrl := range vad.disabledMsgTypeUrls {
for _, disabledTypeUrl := range vad.disabledMsgTypeURLs {

Check warning on line 38 in app/ante/vesting.go

View workflow job for this annotation

GitHub Actions / lint

var-naming: range var disabledTypeUrl should be disabledTypeURL (revive)
if typeURL == disabledTypeUrl {
return ctx, errorsmod.Wrapf(
sdkerrors.ErrUnauthorized,
Expand Down

0 comments on commit 5eb2212

Please sign in to comment.