I try to add more property to the scenario struct but when I run the compile the same error appear:
struct Scenario {
uint id;
address payable author;
address editor;
string title;
string objective;
uint256 price;
string copyrigthDate;
string patientCase;
string EnvironmentFidality;
string MedicalDevices;
string briefingDescription;
string EventFlow;
string debriefingDescription;
}
The error message:
PS C:\Users\user\desktop\chainlist-truffle5> truffle compile
Compiling your contracts...
===========================
> Compiling .\contracts\ChainList.sol
> Compiling .\contracts\Ownable.sol
Error: CompileError: InternalCompilerError: Stack too deep, try using fewer variables.
Compilation failed. See above.
at Object.compile (C:\Users\user\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\workflow-compile\legacy\index.js:72:1)
Truffle v5.0.40 (core: 5.0.40)
Node v10.16.0
So, what the best solution in this case? should I create nested structures??
try using fewer variables
.