From d2af819c05d8e9d62341898ae5daf36555a95a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0ev=C4=8D=C3=ADk?= Date: Fri, 28 Dec 2018 18:02:39 +0100 Subject: [PATCH] Fix: Got rid of getters --- class/abstract-wallet.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/class/abstract-wallet.js b/class/abstract-wallet.js index 74d740c0e..33ec484ec 100644 --- a/class/abstract-wallet.js +++ b/class/abstract-wallet.js @@ -15,6 +15,8 @@ export class AbstractWallet { } constructor() { + this.type = this.constructor.type; + this.typeReadable = this.constructor.typeReadable; this.label = ''; this.secret = ''; // private key or recovery phrase this.balance = 0; @@ -27,14 +29,6 @@ export class AbstractWallet { this.preferredBalanceUnit = BitcoinUnit.BTC; } - get type() { - return this.constructor.type; - } - - get typeReadable() { - return this.constructor.typeReadable; - } - getTransactions() { return this.transactions; }