@typechain/ethers-v5
Advanced tools
Comparing version 8.0.3 to 8.0.4
# @typechain/ethers-v5 | ||
## 8.0.4 | ||
### Patch Changes | ||
- a26ea50: Constant size struct arrays are now properly supported and don't cause malformed TS emit anymore. | ||
- Updated dependencies [a26ea50] | ||
- typechain@6.0.4 | ||
## 8.0.3 | ||
@@ -4,0 +12,0 @@ |
@@ -37,3 +37,6 @@ "use strict"; | ||
case 'array': | ||
if (evmType.size !== undefined) { | ||
if (options.useStructs && isConstantSizeStructArray(evmType)) { | ||
return `[${Array(evmType.size).fill(evmType.structName + common_1.STRUCT_INPUT_POSTFIX)}]`; | ||
} | ||
else if (evmType.size !== undefined) { | ||
return `[${Array(evmType.size) | ||
@@ -83,3 +86,6 @@ .fill(generateInputType({ ...options, useStructs: true }, evmType.itemType)) | ||
case 'array': | ||
if (evmType.size !== undefined) { | ||
if (options.useStructs && isConstantSizeStructArray(evmType)) { | ||
return `[${Array(evmType.size).fill(evmType.structName + common_1.STRUCT_OUTPUT_POSTFIX)}]`; | ||
} | ||
else if (evmType.size !== undefined) { | ||
return `[${Array(evmType.size) | ||
@@ -146,2 +152,5 @@ .fill(generateOutputType({ ...options, useStructs: true }, evmType.itemType)) | ||
exports.generateOutputComplexTypesAsObject = generateOutputComplexTypesAsObject; | ||
function isConstantSizeStructArray(evmType) { | ||
return evmType.size !== undefined && evmType.structName !== undefined; | ||
} | ||
//# sourceMappingURL=types.js.map |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "8.0.3", | ||
"version": "8.0.4", | ||
"license": "MIT", | ||
@@ -36,3 +36,3 @@ "repository": "https://github.com/ethereum-ts/Typechain", | ||
"peerDependencies": { | ||
"typechain": "^6.0.3", | ||
"typechain": "^6.0.4", | ||
"typescript": ">=4.0.0", | ||
@@ -39,0 +39,0 @@ "ethers": "^5.1.3", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74392
875