diff --git a/x/farming/types/genesis.go b/x/farming/types/genesis.go index 60cd97c0..3af6ee53 100644 --- a/x/farming/types/genesis.go +++ b/x/farming/types/genesis.go @@ -50,7 +50,7 @@ func ValidateGenesis(data GenesisState) error { return err } if plan.GetId() < id { - fmt.Errorf("pool records must be sorted") + return fmt.Errorf("pool records must be sorted") } plans = append(plans, plan) }