Skip to content

Commit fe5e401

Browse files
committed
return accounts with chainid and isHardware
1 parent 3f0b00a commit fe5e401

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/models/Account.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ export default class Account {
5151
clone(){ return Account.fromJson(JSON.parse(JSON.stringify(this))) }
5252

5353
asReturnable(){
54-
return PluginRepository.plugin(this.blockchain()).returnableAccount(this);
54+
const returnable = PluginRepository.plugin(this.blockchain()).returnableAccount(this);
55+
returnable.chainId = this.network().chainId;
56+
returnable.isHardware = !!this.keypair().external;
57+
return returnable;
5558
}
5659

5760
tokenCount(systemToken = null){

0 commit comments

Comments
 (0)