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 authored Sep 22, 2023
1 parent 3b5d501 commit 0758900
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 0758900

Please sign in to comment.