mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 23:02:27 +00:00
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:
parent
f37831d173
commit
2200f7ff71
2 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue