From caf15a60aa52d810e041ed5174c50e846b270ccd Mon Sep 17 00:00:00 2001 From: AlphaX-Projects <77661270+AlphaX-Projects@users.noreply.github.com> Date: Thu, 9 Nov 2023 17:31:27 +0100 Subject: [PATCH] Reduce log spam --- core/src/components/friends-view/avatar.js | 1 - .../api/transactions/groups/UpdateGroupTransaction.js | 11 +++++++---- .../api/transactions/polls/CreatePollTransaction.js | 3 ++- plugins/plugins/core/q-app/q-apps.src.js | 2 -- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/core/src/components/friends-view/avatar.js b/core/src/components/friends-view/avatar.js index 12f7090b..c3b98a82 100644 --- a/core/src/components/friends-view/avatar.js +++ b/core/src/components/friends-view/avatar.js @@ -276,7 +276,6 @@ export class AvatarComponent extends connect(store)(LitElement) { } render() { - console.log('hello', this.name, this.resource, this.status); return html`
${this.status.status !== 'READY' diff --git a/crypto/api/transactions/groups/UpdateGroupTransaction.js b/crypto/api/transactions/groups/UpdateGroupTransaction.js index f5071f4e..1c01bff6 100644 --- a/crypto/api/transactions/groups/UpdateGroupTransaction.js +++ b/crypto/api/transactions/groups/UpdateGroupTransaction.js @@ -20,38 +20,42 @@ export default class UpdateGroupTransaction extends TransactionBase { ` } - set fee(fee) { this._fee = fee * QORT_DECIMALS this._feeBytes = this.constructor.utils.int64ToBytes(this._fee) } + set newOwner(newOwner) { this._newOwner = newOwner instanceof Uint8Array ? newOwner : this.constructor.Base58.decode(newOwner) } - set newIsOpen(newIsOpen) { + set newIsOpen(newIsOpen) { this._rGroupType = new Uint8Array(1) this._rGroupType[0] = newIsOpen } + set newDescription(newDescription) { this._rGroupDescBytes = this.constructor.utils.stringtoUTF8Array(newDescription.toLocaleLowerCase()) this._rGroupDescLength = this.constructor.utils.int32ToBytes(this._rGroupDescBytes.length) } + set newApprovalThreshold(newApprovalThreshold) { this._rGroupApprovalThreshold = new Uint8Array(1) this._rGroupApprovalThreshold[0] = newApprovalThreshold; } + set newMinimumBlockDelay(newMinimumBlockDelay) { this._rGroupMinimumBlockDelayBytes = this.constructor.utils.int32ToBytes(newMinimumBlockDelay) } - set newMaximumBlockDelay(newMaximumBlockDelay) { + set newMaximumBlockDelay(newMaximumBlockDelay) { this._rGroupMaximumBlockDelayBytes = this.constructor.utils.int32ToBytes(newMaximumBlockDelay) } set _groupId(_groupId){ this._groupBytes = this.constructor.utils.int32ToBytes(_groupId) } + get params() { const params = super.params params.push( @@ -65,7 +69,6 @@ export default class UpdateGroupTransaction extends TransactionBase { this._rGroupMaximumBlockDelayBytes, this._feeBytes ) - console.log('verify params', params) return params } } diff --git a/crypto/api/transactions/polls/CreatePollTransaction.js b/crypto/api/transactions/polls/CreatePollTransaction.js index a99179b1..bb578126 100644 --- a/crypto/api/transactions/polls/CreatePollTransaction.js +++ b/crypto/api/transactions/polls/CreatePollTransaction.js @@ -47,9 +47,11 @@ export default class CreatePollTransaction extends TransactionBase { set votedialog4(votedialog4) { this._votedialog4 = votedialog4 } + set votedialog5(votedialog5) { this._votedialog5 = votedialog5 } + set votedialog6(votedialog6) { this._votedialog6 = votedialog6 } @@ -99,7 +101,6 @@ export default class CreatePollTransaction extends TransactionBase { this._rNumberOfOptionsBytes ) // Push the dynamic options - console.log('this._options', this._options) for (let i = 0; i < this._options.length; i++) { params.push(this._options[i].length, this._options[i].bytes); } diff --git a/plugins/plugins/core/q-app/q-apps.src.js b/plugins/plugins/core/q-app/q-apps.src.js index 48086c88..c3136d2c 100644 --- a/plugins/plugins/core/q-app/q-apps.src.js +++ b/plugins/plugins/core/q-app/q-apps.src.js @@ -950,8 +950,6 @@ class QApps extends LitElement { const status = await response.json() - console.log("status:", status.id) - if (status.id === "UNSUPPORTED") { this.btnDisabled = false this.textProgress = ''