Merge pull request #5856 from paritytech/mh-pubnode-dappsigner
Fixed account selection for Dapps on public node
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user