Estoy tratando de depurar un código que verifica el saldo del token de una cuenta.
¿Es posible consultar esto en la red Rinkeby? Mi código no devuelve nada.
contract ERC20 {
function totalSupply() constant returns (uint totalSupply);
function balanceOf(address _owner) constant returns (uint balance);
function transfer(address _to, uint _value) returns (bool success);
event Transfer(address indexed _from, address indexed _to, uint _value);
}
contract Test{
ERC20 icoToken;
function Test(){
icoToken = ERC20(0x86fa049857e0209aa7d9e616f7eb3b3b78ecfdb0);
//this is the EOS token address
}
function getMyBalance(address myAddress) constant returns (uint256 theB){
theB = icoToken.balanceOf(myAddress);
return theB;
}
}
No sucede nada cuando ingreso una dirección ETH en getMyBalance.
La cuenta en Rinkeby no es un contrato.
¿EOS tenía una ICO/token de prueba en Rinkeby? Si es así, debe usar esa dirección específica de Rinkeby.