aboutsummaryrefslogtreecommitdiffstats
path: root/packages/abi-gen/src/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/abi-gen/src/utils.ts')
-rw-r--r--packages/abi-gen/src/utils.ts14
1 files changed, 6 insertions, 8 deletions
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;