From b2f84c83b30b27e3bcc6d333ba8ce77455abf4d8 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 11 Aug 2023 15:31:18 +0300 Subject: [PATCH] rpcbinding: reuse `upperFirst` helper where possible No functional changes. Signed-off-by: Anna Shaleva --- pkg/smartcontract/rpcbinding/binding.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/smartcontract/rpcbinding/binding.go b/pkg/smartcontract/rpcbinding/binding.go index f1ee03345..3c2c85db2 100644 --- a/pkg/smartcontract/rpcbinding/binding.go +++ b/pkg/smartcontract/rpcbinding/binding.go @@ -864,7 +864,7 @@ func toTypeName(s string) string { return -1 } return c - }, strings.ToUpper(s[0:1])+s[1:]) + }, upperFirst(s)) } func addIndent(str string, ind string) string {