Skip to content

Commit

Permalink
improve isRelativePath
Browse files Browse the repository at this point in the history
Co-authored-by: alvarius <[email protected]>
  • Loading branch information
dk1a and alvrs committed Sep 22, 2023
1 parent 9675b0c commit efd5c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/codegen/utils/extractUserTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function extractUserTypes(
): Record<string, SolidityUserDefinedType> {
const ast = parse(data);

const isRelativePath = fromPath.indexOf(".") === 0;
const isRelativePath = fromPath.at(0) === ".";
const userDefinedTypes: Record<string, SolidityUserDefinedType> = {};

visit(ast, {
Expand Down

0 comments on commit efd5c2b

Please sign in to comment.