mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
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 {
|
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
|
||||||
|
|
Loading…
Reference in a new issue