Merge pull request #5856 from paritytech/mh-pubnode-dappsigner

Fixed account selection for Dapps on public node
This commit is contained in:
Maciej Hirsz
2017-06-19 18:29:06 +02:00
committed by GitHub
3 changed files with 23 additions and 5 deletions

View File

@@ -21,6 +21,10 @@ export default class Middleware {
}
register (method, handler) {
if (method in this._handlers) {
throw new Error(`${method} is already defined in the middleware!`);
}
this._handlers[method] = handler;
}