14
14
* limitations under the License.
15
15
*/
16
16
17
+ import { Convert } from '../..' ;
17
18
import {
18
19
AccountAddressRestrictionTransaction ,
19
20
AccountKeyLinkTransaction ,
@@ -245,7 +246,7 @@ export const SerializeTransactionToJSON = (transaction: Transaction): any => {
245
246
scopedMetadataKey : accountMetadataTx . scopedMetadataKey . toHex ( ) ,
246
247
valueSizeDelta : accountMetadataTx . valueSizeDelta ,
247
248
valueSize : accountMetadataTx . value . length ,
248
- value : accountMetadataTx . value ,
249
+ value : Convert . uint8ToHex ( accountMetadataTx . value ) ,
249
250
} ;
250
251
} else if ( transaction . type === TransactionType . MOSAIC_METADATA ) {
251
252
const mosaicMetadataTx = transaction as MosaicMetadataTransaction ;
@@ -255,7 +256,7 @@ export const SerializeTransactionToJSON = (transaction: Transaction): any => {
255
256
valueSizeDelta : mosaicMetadataTx . valueSizeDelta ,
256
257
targetMosaicId : mosaicMetadataTx . targetMosaicId . id . toHex ( ) ,
257
258
valueSize : mosaicMetadataTx . value . length ,
258
- value : mosaicMetadataTx . value ,
259
+ value : Convert . uint8ToHex ( mosaicMetadataTx . value ) ,
259
260
} ;
260
261
} else if ( transaction . type === TransactionType . NAMESPACE_METADATA ) {
261
262
const namespaceMetaTx = transaction as NamespaceMetadataTransaction ;
@@ -265,7 +266,7 @@ export const SerializeTransactionToJSON = (transaction: Transaction): any => {
265
266
valueSizeDelta : namespaceMetaTx . valueSizeDelta ,
266
267
targetNamespaceId : namespaceMetaTx . targetNamespaceId . id . toHex ( ) ,
267
268
valueSize : namespaceMetaTx . value . length ,
268
- value : namespaceMetaTx . value ,
269
+ value : Convert . uint8ToHex ( namespaceMetaTx . value ) ,
269
270
} ;
270
271
} else if ( transaction . type === TransactionType . VRF_KEY_LINK ) {
271
272
const vrfKeyLinkTx = transaction as VrfKeyLinkTransaction ;
0 commit comments