From 6ddfaf6b233be46ef70989305595d002cc88043b Mon Sep 17 00:00:00 2001 From: AlphaX-Projects <77661270+AlphaX-Projects@users.noreply.github.com> Date: Sat, 26 Mar 2022 01:37:41 -0700 Subject: [PATCH] Fix colors --- .../api/transactions/names/RegisterNameTransaction.js | 4 ++-- .../reward-share/RemoveRewardShareTransaction.js | 11 ++--------- .../reward-share/RewardShareTransaction.js | 7 +++---- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/qortal-ui-crypto/api/transactions/names/RegisterNameTransaction.js b/qortal-ui-crypto/api/transactions/names/RegisterNameTransaction.js index 2b6838b0..f6597867 100644 --- a/qortal-ui-crypto/api/transactions/names/RegisterNameTransaction.js +++ b/qortal-ui-crypto/api/transactions/names/RegisterNameTransaction.js @@ -11,8 +11,8 @@ export default class RegisterNameTransaction extends TransactionBase { render(html) { return html` You are registering the name below: -
- ${this.nameText} +
+ ${this.nameText}
On pressing confirm, the name will be registered! ` diff --git a/qortal-ui-crypto/api/transactions/reward-share/RemoveRewardShareTransaction.js b/qortal-ui-crypto/api/transactions/reward-share/RemoveRewardShareTransaction.js index f83a085a..c29e71d0 100644 --- a/qortal-ui-crypto/api/transactions/reward-share/RemoveRewardShareTransaction.js +++ b/qortal-ui-crypto/api/transactions/reward-share/RemoveRewardShareTransaction.js @@ -1,12 +1,8 @@ - "use strict"; - import TransactionBase from "../TransactionBase.js" - import publicKeyToAddress from '../../wallet/publicKeyToAddress.js' import { Base58 } from "../../deps/deps.js"; - export default class RemoveRewardShareTransaction extends TransactionBase { constructor() { super() @@ -16,26 +12,23 @@ export default class RemoveRewardShareTransaction extends TransactionBase { render(html) { return html` You are removing a reward share transaction associated with account: -
- ${this.constructor.Base58.encode(this._recipient)} +
+ ${this.constructor.Base58.encode(this._recipient)}
On pressing confirm, the rewardshare will be removed and the minting key will become invalid. ` } set rewardShareKeyPairPublicKey(rewardShareKeyPairPublicKey) { - this._rewardShareKeyPairPublicKey = Base58.decode(rewardShareKeyPairPublicKey) } set recipient(recipient) { - const _address = publicKeyToAddress(this._keyPair.publicKey) this._recipient = recipient instanceof Uint8Array ? recipient : this.constructor.Base58.decode(recipient) this.fee = _address === recipient ? 0 : 0.001 } - set percentageShare(share) { this._percentageShare = share * 100 this._percentageShareBytes = this.constructor.utils.int64ToBytes(this._percentageShare) diff --git a/qortal-ui-crypto/api/transactions/reward-share/RewardShareTransaction.js b/qortal-ui-crypto/api/transactions/reward-share/RewardShareTransaction.js index 4af1f0a2..64e3b0c8 100644 --- a/qortal-ui-crypto/api/transactions/reward-share/RewardShareTransaction.js +++ b/qortal-ui-crypto/api/transactions/reward-share/RewardShareTransaction.js @@ -1,6 +1,5 @@ -import publicKeyToAddress from '../../wallet/publicKeyToAddress.js' - "use strict"; +import publicKeyToAddress from '../../wallet/publicKeyToAddress.js' import TransactionBase from "../TransactionBase.js" import nacl from '../../deps/nacl-fast.js' import ed2curve from '../../deps/ed2curve.js' @@ -16,8 +15,8 @@ export default class RewardShareTransaction extends TransactionBase { return html` Would you like to create a reward share transaction, sharing ${this._percentageShare / 1e8}% of your minting rewards with ${this.constructor.Base58.encode(this._recipient)}? If yes, you will need to save the key below in order to mint. It can be supplied to any node in order to allow it to mint on your behalf. -
- ${this._base58RewardShareSeed} +
+ ${this._base58RewardShareSeed}
On pressing confirm, the rewardshare will be created, but you will still need to supply the above key to a node in order to mint with the account. `