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:
parent
40315fe092
commit
fb8a3973f1
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ func templateFromManifest(cfg Config) (contractTmpl, error) {
|
|||
for i := range m.Parameters {
|
||||
name := m.Parameters[i].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
|
||||
|
|
Loading…
Reference in a new issue