From ed6756898f02f192081fa4c89b5bb2cb1ae3c637 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 18 Dec 2017 16:28:28 +0100 Subject: Define types for ethereumjs-abi --- packages/contracts/globals.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/contracts/globals.d.ts b/packages/contracts/globals.d.ts index a2d5176f8..05c08bd98 100644 --- a/packages/contracts/globals.d.ts +++ b/packages/contracts/globals.d.ts @@ -1,5 +1,4 @@ declare module 'bn.js'; -declare module 'ethereumjs-abi'; declare module 'chai-bignumber'; declare module 'dirty-chai'; @@ -30,6 +29,10 @@ declare module 'web3-eth-abi' { export function encodeParameters(typesArray: string[], parameters: any[]): string; } +declare module 'ethereumjs-abi' { + const soliditySHA3: (argTypes: string[], args: any[]) => Buffer; +} + // Truffle injects the following into the global scope declare var artifacts: any; declare var contract: any; -- cgit