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.0 to 8.0.1

6

CHANGELOG.md
# @typechain/ethers-v5
## 8.0.1
### Patch Changes
- b989dff: Fix structs generated as arrays
## 8.0.0

@@ -4,0 +10,0 @@

34

dist/codegen/types.js

@@ -43,8 +43,13 @@ "use strict";

else {
if (options.useStructs) {
if (evmType.structName) {
if (evmType.structName) {
if (options.useStructs) {
return evmType.structName + common_1.STRUCT_INPUT_POSTFIX + '[]';
}
else {
return `(${generateInputType({ ...options, useStructs: true }, evmType.itemType)})`;
}
}
return `(${generateInputType({ ...options, useStructs: true }, evmType.itemType)})[]`;
else {
return `(${generateInputType({ ...options, useStructs: true }, evmType.itemType)})[]`;
}
}

@@ -56,6 +61,4 @@ case 'boolean':

case 'tuple':
if (options.useStructs) {
if (evmType.structName) {
return evmType.structName + common_1.STRUCT_INPUT_POSTFIX;
}
if (evmType.structName && options.useStructs) {
return evmType.structName + common_1.STRUCT_INPUT_POSTFIX;
}

@@ -87,8 +90,13 @@ return generateTupleType(evmType, generateInputType.bind(null, { ...options, useStructs: true }));

else {
if (options.useStructs) {
if (evmType.structName) {
if (evmType.structName) {
if (options.useStructs) {
return evmType.structName + common_1.STRUCT_OUTPUT_POSTFIX + '[]';
}
else {
return `(${generateOutputType({ ...options, useStructs: true }, evmType.itemType)})`;
}
}
return `(${generateOutputType({ ...options, useStructs: true }, evmType.itemType)})[]`;
else {
return `(${generateOutputType({ ...options, useStructs: true }, evmType.itemType)})[]`;
}
}

@@ -100,6 +108,4 @@ case 'boolean':

case 'tuple':
if (options.useStructs) {
if (evmType.structName) {
return evmType.structName + common_1.STRUCT_OUTPUT_POSTFIX;
}
if (evmType.structName && options.useStructs) {
return evmType.structName + common_1.STRUCT_OUTPUT_POSTFIX;
}

@@ -106,0 +112,0 @@ return generateOutputComplexType(evmType.components, { ...options, useStructs: true });

@@ -11,3 +11,3 @@ {

],
"version": "8.0.0",
"version": "8.0.1",
"license": "MIT",

@@ -14,0 +14,0 @@ "repository": "https://github.com/ethereum-ts/Typechain",

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