我通过导入openzeppelin坚固性主数据部署了ERC20代币合同。现在,我尝试使用第一个合同地址调用从AToken合同(已部署)到CallAToken合同的转移方法。我在下面编写了代码,但抛出以下错误
error:Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
任何人都可以提出我做错了什么以及我必须做什么吗?-谢谢
pragma solidity ^0.5.1;
contract AToken {
function transfer(address sender , address _to, uint256 _value) public;
}
contract CallAToken {
function CallTransfer(address _to, uint256 _value) public {
AToken sd = AToken(0x123456789);
return sd.transfer(msg.sender,_to, _value);
}
}