mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 23:02:27 +00:00
cli: use manifest during contract deployment
This commit is contained in:
parent
a03af55732
commit
76a2f62fbd
6 changed files with 65 additions and 128 deletions
|
@ -32,7 +32,7 @@ type Options struct {
|
|||
ABIInfo string
|
||||
|
||||
// Contract metadata.
|
||||
ContractDetails *smartcontract.ContractDetails
|
||||
ContractFeatures smartcontract.PropertyState
|
||||
}
|
||||
|
||||
type buildInfo struct {
|
||||
|
@ -118,7 +118,7 @@ func CompileAndSave(src string, o *Options) ([]byte, error) {
|
|||
if o.ABIInfo == "" {
|
||||
return b, err
|
||||
}
|
||||
abi := di.convertToABI(b, o.ContractDetails)
|
||||
abi := di.convertToABI(b, o.ContractFeatures)
|
||||
abiData, err := json.Marshal(abi)
|
||||
if err != nil {
|
||||
return b, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue