mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-14 02:11:01 +00:00
Add isHardware flags (#210)
* Add isHardware flags * Ledger connection options
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^1.4.1",
|
||||
"@polkadot/types": "^0.93.0-beta.2",
|
||||
"@polkadot/types": "^0.93.0-beta.3",
|
||||
"@polkadot/util": "^1.4.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -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