transaction: always marshal all token's data for register tx

Fix missing precision and token type.
This commit is contained in:
Roman Khimov 2021-02-18 17:18:53 +03:00
parent 9d6a5dc26f
commit 7fc4f3c4ea

View file

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