mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-12 11:10:35 +00:00
transaction: always JSONize all contract fields for Publish tx
This commit is contained in:
parent
7fc4f3c4ea
commit
98580ae9b4
1 changed files with 10 additions and 10 deletions
|
@ -67,18 +67,18 @@ func (tx *PublishTX) EncodeBinary(bw *io.BinWriter) {
|
||||||
// publishedContract is a JSON wrapper for PublishTransaction
|
// publishedContract is a JSON wrapper for PublishTransaction
|
||||||
type publishedContract struct {
|
type publishedContract struct {
|
||||||
Code publishedCode `json:"code"`
|
Code publishedCode `json:"code"`
|
||||||
NeedStorage bool `json:"needstorage,omitempty"`
|
NeedStorage bool `json:"needstorage"`
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name"`
|
||||||
CodeVersion string `json:"version,omitempty"`
|
CodeVersion string `json:"version"`
|
||||||
Author string `json:"author,omitempty"`
|
Author string `json:"author"`
|
||||||
Email string `json:"email,omitempty"`
|
Email string `json:"email"`
|
||||||
Description string `json:"description,omitempty"`
|
Description string `json:"description"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// publishedCode is a JSON wrapper for PublishTransaction Code
|
// publishedCode is a JSON wrapper for PublishTransaction Code
|
||||||
type publishedCode struct {
|
type publishedCode struct {
|
||||||
Hash util.Uint160 `json:"hash,omitempty"`
|
Hash util.Uint160 `json:"hash"`
|
||||||
Script string `json:"script,omitempty"`
|
Script string `json:"script"`
|
||||||
ParamList []smartcontract.ParamType `json:"parameters,omitempty"`
|
ParamList []smartcontract.ParamType `json:"parameters"`
|
||||||
ReturnType smartcontract.ParamType `json:"returntype,omitempty"`
|
ReturnType smartcontract.ParamType `json:"returntype"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue