Wallet subscriptions & refresh (#7283)

* Update to @parity/api 2.1.7

* Update packages

* Update after signer API alias
This commit is contained in:
Jaco Greeff
2017-12-15 12:48:51 +01:00
committed by GitHub
parent 9821fd92e4
commit 6587dfecc0
6 changed files with 19 additions and 51 deletions

View File

@@ -242,14 +242,9 @@ export default class Store {
return;
}
if (
(method &&
methodGroupFromMethod[method] &&
!this.hasTokenPermission(method, token)) ||
(api &&
methodGroupFromMethod[params[0]] &&
!this.hasTokenPermission(method, token))
) {
const _method = api ? params[0] : method;
if (methodGroupFromMethod[_method] && !this.hasTokenPermission(_method, token)) {
this.queueRequest(id, { // The requestId of a request is the id inside data
data,
source