From cdadbd0f0bde880be50c11767bca7aabc9fb3779 Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Mon, 29 Jan 2024 12:22:02 -0500 Subject: [PATCH] lint --- x/ecocredit/base/types/v1/msg_burn_regen.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/ecocredit/base/types/v1/msg_burn_regen.go b/x/ecocredit/base/types/v1/msg_burn_regen.go index c3d7feed64..bfe455478d 100644 --- a/x/ecocredit/base/types/v1/msg_burn_regen.go +++ b/x/ecocredit/base/types/v1/msg_burn_regen.go @@ -21,13 +21,13 @@ func (m *MsgBurnRegen) ValidateBasic() error { if !amount.IsPositive() { return sdkerrors.ErrInvalidRequest.Wrapf("amount must be positive: %s", m.Amount) } - if len(m.Reason) > MAX_REASON_LEN { + if len(m.Reason) > MaxReasonLen { return sdkerrors.ErrInvalidRequest.Wrapf("reason must at most 256 characters long") } return nil } -const MAX_REASON_LEN = 256 +const MaxReasonLen = 256 // GetSigners returns the expected signers for MsgBurnRegen. func (m *MsgBurnRegen) GetSigners() []sdk.AccAddress {