I have one interface like the following:
pragma solidity ^0.4.11;
interface TokenInterface {
function transfer(address recipient, uint amount) external returns(bool);
}
And the implementation in another contract:
pragma solidity ^0.4.11;
import "./TokenInterface.sol";
contract TokenImpl {
function transfer(address recipient, uint amount) public returns(bool)
{
return true;
}
}
The problem is that if I change to the following the code. Remix don´t tell me nothing related to. The method not correspond to the interface.
pragma solidity ^0.4.11;
import "./TokenInterface.sol";
contract TokenImpl {
function transfer(address recipient, uint amount) public returns(bytes32)
{
return "true";
}
}
Just with the import tag the Impl is applying the Interface structure??
I´m not doing the interface call in the rigth way??
I have to add a constructo qith the address of the Interface?? (But a interface can´t deploy)
I´m a lit confused