Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for via-ir? #57

Open
naps62 opened this issue Sep 3, 2024 · 1 comment
Open

No support for via-ir? #57

naps62 opened this issue Sep 3, 2024 · 1 comment

Comments

@naps62
Copy link

naps62 commented Sep 3, 2024

I have a foundry project where I just enabled via_ir, and moved to using the new require(bool, CustomError()) syntax (which does require via-ir)

natspec-smells now throws an error. it seems it fails to use the via-ir flag in its own internal compilation

CompileFailedError: Compiler Errors: ==== 0.8.26 ====:
 UnimplementedFeatureError: Require with a custom error is only available using the via-ir pipeline.



    at compileSol (/home/naps62/.../fund/node_modules/solc-typed-ast/dist/compile/utils.js:178:11)
    at async getProjectCompiledSources (/home/naps62/.../fund/node_modules/@defi-wonderland/natspec-smells/lib/utils.js:18:27)
    at async /home/naps62/.../fund/node_modules/@defi-wonderland/natspec-smells/lib/main.js:17:25 {
  failures: [ { compilerVersion: '0.8.26', errors: [Array] } ]
}
@gas1cent
Copy link
Member

gas1cent commented Sep 3, 2024

@naps62 thanks for the report, we'll take a look at this shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants