smartcontract: remove empty method parameter handling

It's prohibited by the manifest validness checker, thus should not be
supported by bindings generator.
This commit is contained in:
Anna Shaleva 2022-08-22 13:50:47 +03:00
parent 40315fe092
commit fb8a3973f1

View file

@ -201,7 +201,7 @@ func templateFromManifest(cfg Config) (contractTmpl, error) {
for i := range m.Parameters { for i := range m.Parameters {
name := m.Parameters[i].Name name := m.Parameters[i].Name
if name == "" { if name == "" {
name = fmt.Sprintf("arg%d", i) return ctr, fmt.Errorf("manifest ABI method %q/%d: parameter #%d is unnamed", m.Name, len(m.Parameters), i)
} }
var typeStr string var typeStr string