Remove extraneous id hashing (#7269)

* Remove extraenous id hashing

* Update with latest js-shared
This commit is contained in:
Jaco Greeff
2017-12-12 12:09:24 +01:00
committed by GitHub
parent 11b0cb8da8
commit 777bce8a13
8 changed files with 26 additions and 72 deletions

View File

@@ -18,7 +18,6 @@ import { action, computed, observable } from 'mobx';
import store from 'store';
import { sha3 } from '@parity/api/lib/util/sha3';
import { isHex } from '@parity/api/lib/util/types';
import { methodGroupFromMethod } from './methodGroups';
@@ -100,7 +99,7 @@ export default class Store {
this.requests = { ...this.requests };
};
getPermissionId = (method, appId) => `${method}:${isHex(appId) ? appId : sha3(appId)}`; // Create an id to identify permissions based on method and appId
getPermissionId = (method, appId) => `${method}:${appId}`; // Create an id to identify permissions based on method and appId
getMethodFromRequest = requestId => {
const { data: { method, params } } = this.requests[requestId];