This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Truffle solc pragma causes the exception Cannot destructure property 'contractName' #4863
Closed
1 task done
Labels
Issue
In our repo codebase we are using many contracts dependencies from different solidity versions. Thus, we are using the truffle config
pragma
. Problem is happening in our CI, we are experiencing the error:TypeError: Cannot destructure property 'contractName' of 'contract' as it is undefined.
.Steps to Reproduce
Create and import a few contracts with different versions, for instance:
Create a basic contract using
pragma solidity ^0.8.0;
and import above contracts which has mixed versions.In your
truffle-config.js
file, just set your solc to pragma:Expected Behavior
The contracts to be built successfully. I realized that in truffle
v5.4.26
it actually worksActual Results
Environment
truffle version
): 5.4.33node --version
): v16.14.0The text was updated successfully, but these errors were encountered: