I tried the same logic. But I remove the import statement as import not working while deploying smart contract. (verify and publish step)
pragma solidity >=0.4.23 <0.6.0;
interface IERC20 {
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
}
contract SmartMatrix {
IERC20 private _token;
constructor(IERC20 token) public {
_token = token;
}
function sendERC20TokeToDnividends(address sender, address recipient, uint256 amount) public returns (bool) {
_token.transferFrom(sender, recipient, amount);
return true;
}
}
But I am getting the following error while deploying with remix. Help me to fix this issue.
This contract may be abstract, not implement an abstract parent's methods completely or not invoke an inherited contract's constructor correctly.