aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/deploy/src/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-05 01:56:30 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-10 18:24:31 +0800
commit27d9fba785a5a53550be53b12baf9069bda8d160 (patch)
treebde34d668e53832dd03dd279992721d56291124b /packages/contracts/deploy/src/utils
parente6a783aff803c276392efec93571d24fc96feb6e (diff)
downloaddexon-0x-contracts-27d9fba785a5a53550be53b12baf9069bda8d160.tar.gz
dexon-0x-contracts-27d9fba785a5a53550be53b12baf9069bda8d160.tar.zst
dexon-0x-contracts-27d9fba785a5a53550be53b12baf9069bda8d160.zip
Include web3 types via typeRoots and factor out common parts of tsconfig.json
Diffstat (limited to 'packages/contracts/deploy/src/utils')
-rw-r--r--packages/contracts/deploy/src/utils/contract.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/deploy/src/utils/contract.ts b/packages/contracts/deploy/src/utils/contract.ts
index 2c8bbb79e..546e82dfb 100644
--- a/packages/contracts/deploy/src/utils/contract.ts
+++ b/packages/contracts/deploy/src/utils/contract.ts
@@ -24,7 +24,7 @@ export class Contract implements Web3.ContractInstance {
this._validator = new SchemaValidator();
}
private _populateFunctions(): void {
- const functionsAbi = _.filter(this.abi, abiPart => abiPart.type === AbiType.Function);
+ const functionsAbi = _.filter(this.abi, abiPart => abiPart.type === AbiType.Function) as Web3.FunctionAbi[];
_.forEach(functionsAbi, (functionAbi: Web3.MethodAbi) => {
if (functionAbi.constant) {
const cbStyleCallFunction = this._contract[functionAbi.name].call;
@@ -42,7 +42,7 @@ export class Contract implements Web3.ContractInstance {
});
}
private _populateEvents(): void {
- const eventsAbi = _.filter(this.abi, abiPart => abiPart.type === AbiType.Event);
+ const eventsAbi = _.filter(this.abi, abiPart => abiPart.type === AbiType.Event) as Web3.EventAbi[];
_.forEach(eventsAbi, (eventAbi: Web3.EventAbi) => {
this[eventAbi.name] = this._contract[eventAbi.name];
});