From 7fc4f3c4ea847f7b592689786f82ea39b9d06f0f Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 18 Feb 2021 17:18:53 +0300 Subject: [PATCH] transaction: always marshal all token's data for register tx Fix missing precision and token type. --- pkg/core/transaction/register.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/core/transaction/register.go b/pkg/core/transaction/register.go index 3ce5be61f..014864ab7 100644 --- a/pkg/core/transaction/register.go +++ b/pkg/core/transaction/register.go @@ -56,10 +56,10 @@ func (tx *RegisterTX) EncodeBinary(bw *io.BinWriter) { // registeredAsset is a wrapper for RegisterTransaction type registeredAsset struct { - AssetType AssetType `json:"type,omitempty"` - Name json.RawMessage `json:"name,omitempty"` - Amount util.Fixed8 `json:"amount,omitempty"` - Precision uint8 `json:"precision,omitempty"` - Owner keys.PublicKey `json:"owner,omitempty"` - Admin string `json:"admin,omitempty"` + AssetType AssetType `json:"type"` + Name json.RawMessage `json:"name"` + Amount util.Fixed8 `json:"amount"` + Precision uint8 `json:"precision"` + Owner keys.PublicKey `json:"owner"` + Admin string `json:"admin"` }