From 99e812a1e2e598c70dc563ae644bc938da94fa81 Mon Sep 17 00:00:00 2001 From: AlphaX-Projects <77661270+AlphaX-Projects@users.noreply.github.com> Date: Thu, 16 Feb 2023 20:11:51 +0100 Subject: [PATCH] Fix transaction --- .../names/UpdateNameTransaction.js | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/qortal-ui-crypto/api/transactions/names/UpdateNameTransaction.js b/qortal-ui-crypto/api/transactions/names/UpdateNameTransaction.js index 878d4f35..bfc31563 100644 --- a/qortal-ui-crypto/api/transactions/names/UpdateNameTransaction.js +++ b/qortal-ui-crypto/api/transactions/names/UpdateNameTransaction.js @@ -26,14 +26,14 @@ export default class UpdateNameTransaction extends TransactionBase { this._dialogUpdateName1 = dialogUpdateName1 } - set dialogUpdateName1(dialogUpdateName1) { - this._dialogUpdateName1 = dialogUpdateName1 - } - set dialogUpdateName2(dialogUpdateName2) { this._dialogUpdateName2 = dialogUpdateName2 } + set dialogUpdateName3(dialogUpdateName3) { + this._dialogUpdateName3 = dialogUpdateName3 + } + set fee(fee) { this._fee = fee * QORT_DECIMALS this._feeBytes = this.constructor.utils.int64ToBytes(this._fee) @@ -45,16 +45,16 @@ export default class UpdateNameTransaction extends TransactionBase { this._nameLength = this.constructor.utils.int32ToBytes(this._nameBytes.length) } - set newName(mewName) { + set newName(newName) { this.newNameText = newName - this._newNameBytes = this.constructor.utils.stringtoUTF8Array(mewName) + this._newNameBytes = this.constructor.utils.stringtoUTF8Array(newName) this._newNameLength = this.constructor.utils.int32ToBytes(this._newNameBytes.length) } - set value(value) { - this.valueText = value.length === 0 ? "Registered Name on the Qortal Chain" : value - this._valueBytes = this.constructor.utils.stringtoUTF8Array(this.valueText) - this._valueLength = this.constructor.utils.int32ToBytes(this._valueBytes.length) + set newData(newData) { + this.newDataText = newData.length === 0 ? "Registered Name on the Qortal Chain" : newData + this._newDataBytes = this.constructor.utils.stringtoUTF8Array(this.newDataText) + this._newDataLength = this.constructor.utils.int32ToBytes(this._newDataBytes.length) } get params() { @@ -64,10 +64,10 @@ export default class UpdateNameTransaction extends TransactionBase { this._nameBytes, this._newNameLength, this._newNameBytes, - this._valueLength, - this._valueBytes, + this._newDataLength, + this._newDataBytes, this._feeBytes ) return params } -} +} \ No newline at end of file