mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-12 01:10:36 +00:00
transaction: always marshal all token's data for register tx
Fix missing precision and token type.
This commit is contained in:
parent
9d6a5dc26f
commit
7fc4f3c4ea
1 changed files with 6 additions and 6 deletions
|
@ -56,10 +56,10 @@ func (tx *RegisterTX) EncodeBinary(bw *io.BinWriter) {
|
||||||
|
|
||||||
// registeredAsset is a wrapper for RegisterTransaction
|
// registeredAsset is a wrapper for RegisterTransaction
|
||||||
type registeredAsset struct {
|
type registeredAsset struct {
|
||||||
AssetType AssetType `json:"type,omitempty"`
|
AssetType AssetType `json:"type"`
|
||||||
Name json.RawMessage `json:"name,omitempty"`
|
Name json.RawMessage `json:"name"`
|
||||||
Amount util.Fixed8 `json:"amount,omitempty"`
|
Amount util.Fixed8 `json:"amount"`
|
||||||
Precision uint8 `json:"precision,omitempty"`
|
Precision uint8 `json:"precision"`
|
||||||
Owner keys.PublicKey `json:"owner,omitempty"`
|
Owner keys.PublicKey `json:"owner"`
|
||||||
Admin string `json:"admin,omitempty"`
|
Admin string `json:"admin"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue