Socket
Socket
Sign inDemoInstall

@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.1 to 8.0.2

6

CHANGELOG.md
# @typechain/ethers-v5
## 8.0.2
### Patch Changes
- ba4c18a: Fix support for constructors with structs
## 8.0.1

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

10

dist/codegen/index.js

@@ -175,4 +175,12 @@ "use strict";

function codegenCommonContractFactory(contract, abi) {
var _a;
const constructorStructs = [];
(_a = contract.constructor[0]) === null || _a === void 0 ? void 0 : _a.inputs.forEach(({ type }) => {
const { structName } = type;
if (structName) {
constructorStructs.push(structName + common_1.STRUCT_INPUT_POSTFIX);
}
});
const header = `
import type { ${contract.name}, ${contract.name}Interface } from "../${contract.name}";
import type { ${[contract.name, contract.name + 'Interface', ...constructorStructs].join(', ')} } from "../${contract.name}";

@@ -179,0 +187,0 @@ const _abi = ${JSON.stringify(abi, null, 2)};

2

package.json

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

],
"version": "8.0.1",
"version": "8.0.2",
"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