Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@typechain/ethers-v5

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typechain/ethers-v5 - npm Package Compare versions

Comparing version 8.0.3 to 8.0.4

8

CHANGELOG.md
# @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 @@

13

dist/codegen/types.js

@@ -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

4

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc