Estoy tratando de obtener el valor actual de mi variable int counterforindex
en la función de verificación. Sin embargo, esto no parece suceder.
uint public counterforindex;
function Check(string hdata, string dtime) returns(bool out1)
{
uint C1 = 0;
C1 = this.counterforindex; //The error occurs here
......
}
el error es el siguiente
Error: Type function () returns (uint256) is not implicitly convertible to expected type uint256.
C1 = this.counterforindex;
alguna solucion chicos??????
Agregar paréntesis C1 = this.counterforindex();
debería funcionar como se explica en esta pregunta de StackOverflow