pragma solidity ^0.4.23;
contract CareerCertificate {
struct Certificate {
bytes32 a;// existente - DUDA
bool b;// existente - DUDA
uint c;// existente - DUDA
bytes32 d;
bytes32 e;
bytes32 f;
bytes32 g;
bytes32 h;
bytes32 i;//Nuevo
bytes32 j;//NUEVO
bytes32 k;//NUEVO
uint l;
uint m;
bool active;
}
address public ceoAddress;
address public employee;
mapping (bytes32 => Certificate) public certificates;//<___________
event CertificateCreated(address creator, string id, string RUT);
event SetActive(address responsable, string id, bool active, string description);
constructor() public {
ceoAddress = msg.sender;
}
//funcion que crea un certificado recibe los campos y lo convierte en la variable bytes32
function createCertificate(string _a, uint _date, string _completeName, string _RUT, string _institution, string _RutInstition, string _title, string _FechaTitulacion,
string _NroRegistro, string _CodigoVerificacion, uint _completionDate, uint _registerNumber) onlyEmployees {
bytes32 realId = convert(_a);
require(!certificateExists(_a));
certificates[realId].a = a;
..... ..... ....
I have a problem that when I add a variable to the struct it shows me that error. I still have my doubts if I am doing bad mapping, because deleting the mapping or a variable of the struct eliminates the error.