mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-13 06:21:03 +00:00
Add ExtensionStore (from @polkadot/extension) (#142)
* Add ExtensionStore (from @polkadot/extension) * Consistent naming, untested/unused File store * Update File.ts
This commit is contained in:
@@ -14,7 +14,7 @@ import accounts from './observable/accounts';
|
||||
import addresses from './observable/addresses';
|
||||
import contracts from './observable/contracts';
|
||||
import env from './observable/development';
|
||||
import LocalStorageStore from './stores/LocalStorage';
|
||||
import { BrowserStore } from './stores';
|
||||
import { MAX_PASS_LEN } from './defaults';
|
||||
|
||||
export default class Base {
|
||||
@@ -108,7 +108,7 @@ export default class Base {
|
||||
|
||||
this._keyring = keyring;
|
||||
this._genesisHash = options.genesisHash && options.genesisHash.toHex();
|
||||
this._store = options.store || new LocalStorageStore();
|
||||
this._store = options.store || new BrowserStore();
|
||||
|
||||
this.addAccountPairs();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user