|
|
@ -6,15 +6,6 @@ export default class RegisterNameTransaction extends TransactionBase { |
|
|
|
constructor() { |
|
|
|
constructor() { |
|
|
|
super() |
|
|
|
super() |
|
|
|
this.type = 3 |
|
|
|
this.type = 3 |
|
|
|
this.fee = 0.001 |
|
|
|
|
|
|
|
// this.tests.push(
|
|
|
|
|
|
|
|
// () => {
|
|
|
|
|
|
|
|
// if (!(this._registrantAddress instanceof Uint8Array && this._registrantAddress.length == 25)) {
|
|
|
|
|
|
|
|
// return "Invalid registrant " + Base58.encode(this._registrantAddress)
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// return true
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// )
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
render(html) { |
|
|
|
render(html) { |
|
|
@ -27,16 +18,19 @@ export default class RegisterNameTransaction extends TransactionBase { |
|
|
|
` |
|
|
|
` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set fee(fee) { |
|
|
|
|
|
|
|
this._fee = fee * QORT_DECIMALS |
|
|
|
|
|
|
|
this._feeBytes = this.constructor.utils.int64ToBytes(this._fee) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
set name(name) { |
|
|
|
set name(name) { |
|
|
|
this.nameText = name; |
|
|
|
this.nameText = name; |
|
|
|
|
|
|
|
|
|
|
|
this._nameBytes = this.constructor.utils.stringtoUTF8Array(name) |
|
|
|
this._nameBytes = this.constructor.utils.stringtoUTF8Array(name) |
|
|
|
this._nameLength = this.constructor.utils.int32ToBytes(this._nameBytes.length) |
|
|
|
this._nameLength = this.constructor.utils.int32ToBytes(this._nameBytes.length) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
set value(value) { |
|
|
|
set value(value) { |
|
|
|
this.valueText = value.length === 0 ? "Registered Name on the Qortal Chain" : value; |
|
|
|
this.valueText = value.length === 0 ? "Registered Name on the Qortal Chain" : value; |
|
|
|
|
|
|
|
|
|
|
|
this._valueBytes = this.constructor.utils.stringtoUTF8Array(this.valueText) |
|
|
|
this._valueBytes = this.constructor.utils.stringtoUTF8Array(this.valueText) |
|
|
|
this._valueLength = this.constructor.utils.int32ToBytes(this._valueBytes.length) |
|
|
|
this._valueLength = this.constructor.utils.int32ToBytes(this._valueBytes.length) |
|
|
|
} |
|
|
|
} |
|
|
|