diff --git a/packages/core/core/src/engine.ts b/packages/core/core/src/engine.ts index 5b7ce758a..c173814b3 100644 --- a/packages/core/core/src/engine.ts +++ b/packages/core/core/src/engine.ts @@ -205,7 +205,7 @@ export class Engine { if (this.plugins) { const plugin = this.plugins.createPlugin('coreservicesplugin', {}); - plugin.registerActionForEvent("embark:engine:started", undefined, (_params, cb) => { + plugin.registerActionForEvent("embark:engine:started", (_params, cb) => { this.servicesMonitor && this.servicesMonitor.startMonitor(); cb(); }); diff --git a/packages/plugins/accounts-manager/src/index.ts b/packages/plugins/accounts-manager/src/index.ts index a3de28e59..a4229149b 100644 --- a/packages/plugins/accounts-manager/src/index.ts +++ b/packages/plugins/accounts-manager/src/index.ts @@ -22,7 +22,7 @@ export default class AccountsManager { this._web3 = null; }); - this.embark.registerActionForEvent("tests:config:updated", undefined, async (params, cb) => { + this.embark.registerActionForEvent("tests:config:updated", async (params, cb) => { // reset accounts backing variable as the accounts in config may have changed and // web.eth.getAccounts may return a different value now this._accounts = null; diff --git a/packages/plugins/rpc-manager/src/lib/eth_accounts.ts b/packages/plugins/rpc-manager/src/lib/eth_accounts.ts index 56c5114ea..463d0f246 100644 --- a/packages/plugins/rpc-manager/src/lib/eth_accounts.ts +++ b/packages/plugins/rpc-manager/src/lib/eth_accounts.ts @@ -21,7 +21,7 @@ export default class EthAccounts extends RpcModifier { constructor(embark: Embark, rpcModifierEvents: Events) { super(embark, rpcModifierEvents); - this.embark.registerActionForEvent("blockchain:proxy:response", undefined, this.checkResponseFor_eth_accounts.bind(this)); + this.embark.registerActionForEvent("blockchain:proxy:response", this.checkResponseFor_eth_accounts.bind(this)); } private async checkResponseFor_eth_accounts(params: any, callback: Callback) { diff --git a/packages/plugins/rpc-manager/src/lib/eth_sendTransaction.ts b/packages/plugins/rpc-manager/src/lib/eth_sendTransaction.ts index c93626c98..6456b4fec 100644 --- a/packages/plugins/rpc-manager/src/lib/eth_sendTransaction.ts +++ b/packages/plugins/rpc-manager/src/lib/eth_sendTransaction.ts @@ -11,7 +11,7 @@ export default class EthSendTransaction extends RpcModifier { constructor(embark: Embark, rpcModifierEvents: Events) { super(embark, rpcModifierEvents); - embark.registerActionForEvent("blockchain:proxy:request", undefined, this.checkRequestFor_eth_sendTransaction.bind(this)); + embark.registerActionForEvent("blockchain:proxy:request", this.checkRequestFor_eth_sendTransaction.bind(this)); // Allow to run transaction in parallel by resolving the nonce manually. // For each transaction, resolve the nonce by taking the max of current transaction count and the cache we keep locally. diff --git a/packages/plugins/rpc-manager/src/lib/eth_signTypedData.ts b/packages/plugins/rpc-manager/src/lib/eth_signTypedData.ts index b49afeef4..cb9f73ab8 100644 --- a/packages/plugins/rpc-manager/src/lib/eth_signTypedData.ts +++ b/packages/plugins/rpc-manager/src/lib/eth_signTypedData.ts @@ -8,8 +8,8 @@ export default class EthSignTypedData extends RpcModifier { constructor(embark: Embark, rpcModifierEvents: Events) { super(embark, rpcModifierEvents); - this.embark.registerActionForEvent("blockchain:proxy:request", undefined, this.checkRequestFor_eth_signTypedData.bind(this)); - this.embark.registerActionForEvent("blockchain:proxy:response", undefined, this.checkResponseFor_eth_signTypedData.bind(this)); + this.embark.registerActionForEvent("blockchain:proxy:request", this.checkRequestFor_eth_signTypedData.bind(this)); + this.embark.registerActionForEvent("blockchain:proxy:response", this.checkResponseFor_eth_signTypedData.bind(this)); } private async checkRequestFor_eth_signTypedData(params: any, callback: Callback) { diff --git a/packages/plugins/rpc-manager/src/lib/personal_newAccount.ts b/packages/plugins/rpc-manager/src/lib/personal_newAccount.ts index cd35f81e0..a12304cf0 100644 --- a/packages/plugins/rpc-manager/src/lib/personal_newAccount.ts +++ b/packages/plugins/rpc-manager/src/lib/personal_newAccount.ts @@ -7,7 +7,7 @@ export default class PersonalNewAccount extends RpcModifier { constructor(embark: Embark, rpcModifierEvents: Events) { super(embark, rpcModifierEvents); - embark.registerActionForEvent("blockchain:proxy:response", undefined, this.checkResponseFor_personal_newAccount.bind(this)); + embark.registerActionForEvent("blockchain:proxy:response", this.checkResponseFor_personal_newAccount.bind(this)); } private async checkResponseFor_personal_newAccount(params: any, callback: Callback) {