From c0950b6047ba237549699687ed7eece277dc7368 Mon Sep 17 00:00:00 2001 From: "jaeseung.bae" Date: Fri, 3 May 2024 16:43:54 +0900 Subject: [PATCH] fix: add missing call validateBasic for proposal --- x/fswap/types/proposal.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x/fswap/types/proposal.go b/x/fswap/types/proposal.go index 6aba55a5c9..5891f449d0 100644 --- a/x/fswap/types/proposal.go +++ b/x/fswap/types/proposal.go @@ -42,5 +42,8 @@ func (m *MakeSwapProposal) ValidateBasic() error { if err := m.Swap.ValidateBasic(); err != nil { return err } + if err := m.ToDenomMetadata.Validate(); err != nil { + return err + } return gov.ValidateAbstract(m) }