Multiple compilers with/without viaIR #3574
-
I'm working with 2 contracts, A.sol and B.sol, both of which inherit from C.sol. Both contracts share the same compiler settings except for viaIR, which should be enabled for A and disabled for B. A.sol won't compile if viaIR is not enabled. This is the compilers settings that I'm using:
However, compilation of A.sol fails with this configuration as if it was compiled with viaIR disabled:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @fnanni-0, I cannot reproduce this: https://github.com/fvictorio/hardhat-3574 (I'm not inheriting from |
Beta Was this translation helpful? Give feedback.
-
Hi @fvictorio, I just found the problem. I am working with a big repo and missed a test contract that was importing A similar to this https://github.com/fnanni-0/hardhat-3574/blob/main/contracts/D.sol. Simply compiling D with viaIR enabled as well solved the issue. Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Hi @fvictorio, I just found the problem. I am working with a big repo and missed a test contract that was importing A similar to this https://github.com/fnanni-0/hardhat-3574/blob/main/contracts/D.sol. Simply compiling D with viaIR enabled as well solved the issue.
Thanks a lot!