Skip to content

Commit 1b9949e

Browse files
committed
Parse with latest compatible solidity version
1 parent fa8fd87 commit 1b9949e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/slang-utils/create-parser.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ export function createParser(
6868
return result;
6969
}
7070

71-
const result = parserAndOutput(text, inferredRanges[0]);
71+
const result = parserAndOutput(
72+
text,
73+
inferredRanges[inferredRanges.length - 1]
74+
);
7275

7376
if (!result.parseOutput.isValid())
7477
throw createError(

0 commit comments

Comments
 (0)