smartcontract: add list of supported standards to manifest

Closes #1204
This commit is contained in:
Anna Shaleva 2020-08-04 12:55:36 +03:00
parent 3e192b11b2
commit 66ceaa6b75
7 changed files with 59 additions and 35 deletions

View file

@ -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")
}