From 2acdc627e2eaa1d562de6243045c701caa9468c8 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Wed, 31 May 2017 10:43:09 +0200 Subject: Add TxOpts type --- src/types.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/types.ts b/src/types.ts index caef50993..3619c800f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -38,7 +38,7 @@ export interface TokenContract { allowance: { call: (ownerAddress: string, allowedAddress: string) => Promise; }; - approve: (proxyAddress: string, amountInBaseUnits: BigNumber.BigNumber, opts: any) => void; + approve: (proxyAddress: string, amountInBaseUnits: BigNumber.BigNumber, txOpts: TxOpts) => void; } export interface TokenRegistryContract { @@ -66,3 +66,8 @@ export interface Token { decimals: number; url: string; }; + +export interface TxOpts { + from: string; + gas?: number; +}; -- cgit