Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Jan 29, 2024
1 parent 68df7d7 commit cdadbd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/ecocredit/base/types/v1/msg_burn_regen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cdadbd0

Please sign in to comment.