From a0390956a91b2e15052d1b5ca43ef6d85d64234e Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 27 Feb 2018 10:43:42 -0800 Subject: Merge ifs --- packages/abi-gen/src/utils.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'packages/abi-gen/src') diff --git a/packages/abi-gen/src/utils.ts b/packages/abi-gen/src/utils.ts index 349604aec..3e4ff619a 100644 --- a/packages/abi-gen/src/utils.ts +++ b/packages/abi-gen/src/utils.ts @@ -36,14 +36,12 @@ export const utils = { tsType: 'number|BigNumber', }); } - if (backend === ContractsBackend.Ethers) { - if (paramKind === ParamKind.Output) { - // ethers-contracts automatically converts small BigNumbers to numbers - solTypeRegexToTsType.unshift({ - regex: '^u?int(8|16|32|48)?$', - tsType: 'number', - }); - } + if (backend === ContractsBackend.Ethers && paramKind === ParamKind.Output) { + // ethers-contracts automatically converts small BigNumbers to numbers + solTypeRegexToTsType.unshift({ + regex: '^u?int(8|16|32|48)?$', + tsType: 'number', + }); } for (const regexAndTxType of solTypeRegexToTsType) { const { regex, tsType } = regexAndTxType; -- cgit