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:
Jaco Greeff authored and GitHub committed 2019-06-06 18:13:28 +02:00
1 parent abb94d254c
commit da84d5a8ae
9 files changed
+163 -8

No files matched your search

+2 -2
View File
@@ -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();
}