diff --git a/pkg/smartcontract/binding/generate.go b/pkg/smartcontract/binding/generate.go index 17d5e028d..f9dfb2986 100644 --- a/pkg/smartcontract/binding/generate.go +++ b/pkg/smartcontract/binding/generate.go @@ -96,9 +96,7 @@ func Generate(cfg Config) error { ctr.Imports = append(ctr.Imports, "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal") sort.Strings(ctr.Imports) - tmp, err := template.New("generate").Funcs(template.FuncMap{ - "lowerFirst": lowerFirst, - }).Parse(srcTmpl) + tmp, err := template.New("generate").Parse(srcTmpl) if err != nil { return err } @@ -238,7 +236,3 @@ func TemplateFromManifest(cfg Config, scTypeConverter func(string, smartcontract func upperFirst(s string) string { return strings.ToUpper(s[0:1]) + s[1:] } - -func lowerFirst(s string) string { - return strings.ToLower(s[0:1]) + s[1:] -}