@@ -60,7 +60,7 @@ export class AccountMetadataTransaction extends Transaction {
6060 targetAddress : UnresolvedAddress ,
6161 scopedMetadataKey : UInt64 ,
6262 valueSizeDelta : number ,
63- value : string ,
63+ value : Uint8Array ,
6464 networkType : NetworkType ,
6565 maxFee : UInt64 = new UInt64 ( [ 0 , 0 ] ) ,
6666 signature ?: string ,
@@ -111,10 +111,10 @@ export class AccountMetadataTransaction extends Transaction {
111111 */
112112 public readonly valueSizeDelta : number ,
113113 /**
114- * String value with UTF-8 encoding.
114+ * xor of previous and the new value
115115 * Difference between the previous value and new value.
116116 */
117- public readonly value : string ,
117+ public readonly value : Uint8Array ,
118118 signature ?: string ,
119119 signer ?: PublicAccount ,
120120 transactionInfo ?: TransactionInfo ,
@@ -142,7 +142,7 @@ export class AccountMetadataTransaction extends Transaction {
142142 UnresolvedMapping . toUnresolvedAddress ( Convert . uint8ToHex ( builder . getTargetAddress ( ) . unresolvedAddress ) ) ,
143143 new UInt64 ( builder . getScopedMetadataKey ( ) ) ,
144144 builder . getValueSizeDelta ( ) ,
145- Convert . uint8ToUtf8 ( builder . getValue ( ) ) ,
145+ builder . getValue ( ) ,
146146 networkType ,
147147 isEmbedded ? new UInt64 ( [ 0 , 0 ] ) : new UInt64 ( ( builder as AccountMetadataTransactionBuilder ) . fee . amount ) ,
148148 signature ,
@@ -167,7 +167,7 @@ export class AccountMetadataTransaction extends Transaction {
167167 new UnresolvedAddressDto ( this . targetAddress . encodeUnresolvedAddress ( this . networkType ) ) ,
168168 this . scopedMetadataKey . toDTO ( ) ,
169169 this . valueSizeDelta ,
170- Convert . utf8ToUint8 ( this . value ) ,
170+ this . value ,
171171 ) ;
172172 return transactionBuilder ;
173173 }
@@ -185,7 +185,7 @@ export class AccountMetadataTransaction extends Transaction {
185185 new UnresolvedAddressDto ( this . targetAddress . encodeUnresolvedAddress ( this . networkType ) ) ,
186186 this . scopedMetadataKey . toDTO ( ) ,
187187 this . valueSizeDelta ,
188- Convert . utf8ToUint8 ( this . value ) ,
188+ this . value ,
189189 ) ;
190190 }
191191
0 commit comments