@@ -21,7 +21,6 @@ import (
2121 "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker"
2222 "github.com/nspcc-dev/neo-go/pkg/rpcclient/management"
2323 "github.com/nspcc-dev/neo-go/pkg/smartcontract"
24- "github.com/nspcc-dev/neo-go/pkg/smartcontract/binding"
2524 "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest"
2625 "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef"
2726 "github.com/nspcc-dev/neo-go/pkg/util"
@@ -419,15 +418,13 @@ func initSmartContract(ctx *cli.Context) error {
419418 SourceURL : "http://example.com/" ,
420419 SupportedStandards : []string {},
421420 SafeMethods : []string {},
422- Events : []compiler. HybridEvent {
421+ Events : []manifest. Event {
423422 {
424423 Name : "Hello world!" ,
425- Parameters : []compiler. HybridParameter {
424+ Parameters : []manifest. Parameter {
426425 {
427- Parameter : manifest.Parameter {
428- Name : "args" ,
429- Type : smartcontract .ArrayType ,
430- },
426+ Name : "args" ,
427+ Type : smartcontract .ArrayType ,
431428 },
432429 },
433430 },
@@ -528,7 +525,7 @@ func contractCompile(ctx *cli.Context) error {
528525 o .Name = conf .Name
529526 o .SourceURL = conf .SourceURL
530527 o .ContractEvents = conf .Events
531- o .DeclaredNamedTypes = conf .NamedTypes
528+ o .NamedTypes = conf .NamedTypes
532529 o .ContractSupportedStandards = conf .SupportedStandards
533530 o .Permissions = make ([]manifest.Permission , len (conf .Permissions ))
534531 for i := range conf .Permissions {
@@ -537,6 +534,9 @@ func contractCompile(ctx *cli.Context) error {
537534 o .SafeMethods = conf .SafeMethods
538535 o .Overloads = conf .Overloads
539536 }
537+ if o .NamedTypes == nil {
538+ o .NamedTypes = make (map [string ]manifest.ExtendedType )
539+ }
540540
541541 result , err := compiler .CompileAndSave (src , o )
542542 if err != nil {
@@ -760,10 +760,10 @@ type ProjectConfig struct {
760760 SourceURL string
761761 SafeMethods []string
762762 SupportedStandards []string
763- Events []compiler. HybridEvent
763+ Events []manifest. Event
764764 Permissions []permission
765- Overloads map [string ]string `yaml:"overloads,omitempty"`
766- NamedTypes map [string ]binding .ExtendedType `yaml:"namedtypes,omitempty"`
765+ Overloads map [string ]string `yaml:"overloads,omitempty"`
766+ NamedTypes map [string ]manifest .ExtendedType `yaml:"namedtypes,omitempty"`
767767}
768768
769769func inspect (ctx * cli.Context ) error {
0 commit comments