mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 23:02:27 +00:00
smartcontract: add list of supported standards to manifest
Closes #1204
This commit is contained in:
parent
3e192b11b2
commit
66ceaa6b75
7 changed files with 59 additions and 35 deletions
|
@ -35,8 +35,11 @@ type Options struct {
|
|||
// The name of the output for contract manifest file.
|
||||
ManifestFile string
|
||||
|
||||
// Contract metadata.
|
||||
// Contract features.
|
||||
ContractFeatures smartcontract.PropertyState
|
||||
|
||||
// The list of standards supported by the contract.
|
||||
ContractSupportedStandards []string
|
||||
}
|
||||
|
||||
type buildInfo struct {
|
||||
|
@ -165,7 +168,7 @@ func CompileAndSave(src string, o *Options) ([]byte, error) {
|
|||
}
|
||||
|
||||
if o.ManifestFile != "" {
|
||||
m, err := di.ConvertToManifest(o.ContractFeatures)
|
||||
m, err := di.ConvertToManifest(o.ContractFeatures, o.ContractSupportedStandards...)
|
||||
if err != nil {
|
||||
return b, errors.Wrap(err, "failed to convert debug info to manifest")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue