From fe5e40169cf0cf3d264fdfb9a0f9b26cf7739bb5 Mon Sep 17 00:00:00 2001 From: nsjames Date: Wed, 19 Dec 2018 06:38:46 +0200 Subject: [PATCH] return accounts with chainid and isHardware --- src/models/Account.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/models/Account.js b/src/models/Account.js index 633fa347..8204577d 100644 --- a/src/models/Account.js +++ b/src/models/Account.js @@ -51,7 +51,10 @@ export default class Account { clone(){ return Account.fromJson(JSON.parse(JSON.stringify(this))) } asReturnable(){ - return PluginRepository.plugin(this.blockchain()).returnableAccount(this); + const returnable = PluginRepository.plugin(this.blockchain()).returnableAccount(this); + returnable.chainId = this.network().chainId; + returnable.isHardware = !!this.keypair().external; + return returnable; } tokenCount(systemToken = null){