Comparing version 7.0.0 to 7.0.1
# typechain | ||
## 7.0.1 | ||
### Patch Changes | ||
- 7e7bbed: Add support for foundry / forge style artifacts | ||
## 7.0.0 | ||
@@ -4,0 +10,0 @@ |
@@ -186,3 +186,3 @@ "use strict"; | ||
function extractBytecode(rawContents) { | ||
var _a, _b, _c, _d, _e, _f, _g, _h; | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; | ||
// When there are some unlinked libraries, the compiler replaces their addresses in calls with | ||
@@ -205,3 +205,3 @@ // "link references". There are many different kinds of those, depending on compiler version and usage. | ||
} | ||
catch (_j) { | ||
catch (_l) { | ||
return undefined; | ||
@@ -219,3 +219,7 @@ } | ||
} | ||
if ((_h = json.bytecode) === null || _h === void 0 ? void 0 : _h.match(bytecodeRegex)) { | ||
// handle json schema of @foundry/forge | ||
if ((_j = (_h = json.bytecode) === null || _h === void 0 ? void 0 : _h.object) === null || _j === void 0 ? void 0 : _j.match(bytecodeRegex)) { | ||
return extractLinkReferences(json.bytecode.object, json.bytecode.linkReferences); | ||
} | ||
if ((_k = json.bytecode) === null || _k === void 0 ? void 0 : _k.match(bytecodeRegex)) { | ||
return extractLinkReferences(json.bytecode, json.linkReferences); | ||
@@ -222,0 +226,0 @@ } |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "7.0.0", | ||
"version": "7.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
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
100232
1301