mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-12 18:51:02 +00:00
Add isHardware flags (#210)
* Add isHardware flags * Ledger connection options
This commit is contained in:
@@ -41,7 +41,8 @@ export default function genericSubject (keyCreator: (address: string) => string,
|
||||
option: createOptionItem(address, json.meta.name)
|
||||
};
|
||||
|
||||
if (!json.meta.isInjected && (!json.meta.isTesting || development.isDevelopment())) {
|
||||
// we do not store dev accounts, injected or hardware (the latter two are external/transient)
|
||||
if (!json.meta.isInjected && !json.meta.isHardware && (!json.meta.isTesting || development.isDevelopment())) {
|
||||
store.set(keyCreator(address), json);
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,8 @@ export interface KeyringOptions extends KeyringOptionsBase {
|
||||
export interface KeyringJson$Meta {
|
||||
contract?: ContractMeta;
|
||||
genesisHash?: string | null;
|
||||
hardwareType?: 'ledger';
|
||||
isHardware?: boolean;
|
||||
isInjected?: boolean;
|
||||
isRecent?: boolean;
|
||||
isTesting?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user