Skip to content

Commit

Permalink
return accounts with chainid and isHardware
Browse files Browse the repository at this point in the history
  • Loading branch information
nsjames committed Dec 19, 2018
1 parent 3f0b00a commit fe5e401
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/models/Account.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit fe5e401

Please sign in to comment.