Fixed account selection for Dapps on public node

This commit is contained in:
maciejhirsz
2017-06-16 14:00:30 +02:00
parent 8d04dffe69
commit ba6e41cf07
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;
}