You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Based on the compiler option provided, we inferred your code to be using Solidity version ${
45
-
result.parser.languageVersion
46
-
}. If you would like to change that, specify a different version in your \`.prettierrc\` file.`
47
-
);
48
-
49
-
returnresult;
36
+
returnparserAndOutput(
37
+
text,
38
+
compiler,
39
+
`Based on the compiler option provided, we inferred your code to be using Solidity version ${compiler}. If you would like to change that, specify a different version in your \`.prettierrc\` file.`
`We couldn't infer a Solidity version based on the pragma statements in your code so we defaulted to ${latestSupportedVersion}. You might be attempting to use a syntax not yet supported by Slang or you might want to specify a version in your \`.prettierrc\` file.`
59
51
);
60
-
61
-
if(!result.parseOutput.isValid())
62
-
throwcreateError(
63
-
result,
64
-
`We couldn't infer a Solidity version based on the pragma statements in your code so we defaulted to ${
65
-
result.parser.languageVersion
66
-
}. You might be attempting to use a syntax not yet supported by Slang or you might want to specify a version in your \`.prettierrc\` file.`
`Based on the pragma statements, we inferred your code to be using Solidity version ${inferredVersion}. If you would like to change that, update the pragmas in your source file, or specify a version in your \`.prettierrc\` file.`
74
59
);
75
-
76
-
if(!result.parseOutput.isValid())
77
-
throwcreateError(
78
-
result,
79
-
`Based on the pragma statements, we inferred your code to be using Solidity version ${
80
-
result.parser.languageVersion
81
-
}. If you would like to change that, update the pragmas in your source file, or specify a version in your \`.prettierrc\` file.`
0 commit comments