compiler: lowercase the first letter of methods in manifest

In order to be compatable with NEP5 standards and C# node we have to
keep the first letter of each manifest method lowercased.
This commit is contained in:
Anna Shaleva 2020-07-07 12:01:39 +03:00
parent f37831d173
commit 2200f7ff71
2 changed files with 8 additions and 8 deletions

View file

@ -269,7 +269,7 @@ func (m *MethodDebugInfo) ToManifestMethod() (manifest.Method, error) {
if err != nil {
return result, err
}
result.Name = m.Name.Name
result.Name = strings.ToLower(string(m.Name.Name[0])) + m.Name.Name[1:]
result.Parameters = parameters
result.ReturnType = returnType
return result, nil