@@ -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 },
@@ -517,7 +514,10 @@ func contractCompile(ctx *cli.Context) error {
517514 NoEventsCheck : ctx .Bool ("no-events" ),
518515 NoPermissionsCheck : ctx .Bool ("no-permissions" ),
519516
520- GuessEventTypes : ctx .Bool ("guess-eventtypes" ),
517+ CollectedNamedTypes : make (map [string ]manifest.ExtendedType ),
518+ }
519+ if ctx .Bool ("guess-eventtypes" ) {
520+ o .GuessedNamedTypes = make (map [string ]manifest.ExtendedType )
521521 }
522522
523523 if len (confFile ) != 0 {
@@ -528,7 +528,6 @@ func contractCompile(ctx *cli.Context) error {
528528 o .Name = conf .Name
529529 o .SourceURL = conf .SourceURL
530530 o .ContractEvents = conf .Events
531- o .DeclaredNamedTypes = conf .NamedTypes
532531 o .ContractSupportedStandards = conf .SupportedStandards
533532 o .Permissions = make ([]manifest.Permission , len (conf .Permissions ))
534533 for i := range conf .Permissions {
@@ -760,10 +759,10 @@ type ProjectConfig struct {
760759 SourceURL string
761760 SafeMethods []string
762761 SupportedStandards []string
763- Events []compiler. HybridEvent
762+ Events []manifest. Event
764763 Permissions []permission
765- Overloads map [string ]string `yaml:"overloads,omitempty"`
766- NamedTypes map [string ]binding .ExtendedType `yaml:"namedtypes,omitempty"`
764+ Overloads map [string ]string `yaml:"overloads,omitempty"`
765+ NamedTypes map [string ]manifest .ExtendedType `yaml:"namedtypes,omitempty"`
767766}
768767
769768func inspect (ctx * cli.Context ) error {
0 commit comments