Comparing version 6.0.0 to 6.0.1
# typechain | ||
## 6.0.1 | ||
### Patch Changes | ||
- 44a04c0: Fix bug in parsing names of free floating structs | ||
## 6.0.0 | ||
@@ -4,0 +10,0 @@ |
@@ -63,1 +63,3 @@ export declare type EvmType = BooleanType | IntegerType | UnsignedIntegerType | StringType | BytesType | DynamicBytesType | AddressType | ArrayType | TupleType | UnknownType; | ||
export declare function parseEvmType(rawType: string, components?: EvmSymbol[], internalType?: string): EvmType; | ||
/** @internal */ | ||
export declare function extractStructNameIfAvailable(internalType: string | undefined): string | undefined; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseEvmType = void 0; | ||
exports.extractStructNameIfAvailable = exports.parseEvmType = void 0; | ||
const logger_1 = require("../utils/logger"); | ||
@@ -77,3 +77,5 @@ const normalizeName_1 = require("./normalizeName"); | ||
exports.parseEvmType = parseEvmType; | ||
/** @internal */ | ||
function extractStructNameIfAvailable(internalType) { | ||
console.log('internalType', internalType); | ||
if (internalType === null || internalType === void 0 ? void 0 : internalType.startsWith('struct ')) { | ||
@@ -86,7 +88,10 @@ // get rid of "struct " in the beginning | ||
} | ||
// get rid of contract name | ||
nameStr = nameStr.split('.')[1]; | ||
// get rid of contract name if exists | ||
if (nameStr.indexOf('.') !== -1) { | ||
nameStr = nameStr.split('.')[1]; | ||
} | ||
return (0, normalizeName_1.normalizeName)(nameStr); | ||
} | ||
} | ||
exports.extractStructNameIfAvailable = extractStructNameIfAvailable; | ||
//# sourceMappingURL=parseEvmType.js.map |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "6.0.0", | ||
"version": "6.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
89720
1159