interface ERC20Interface {
   function transfer(address _to, uint256 _value) external; // <---- A
   function transfer(address _to, uint256 _value) public returns (bool success); // <---- B
   function transferFrom(address _from, address _to, uint256 _value) external;

What's the difference between using A or B?

put on hold as unclear what you're asking by goodvibration, Niklas Feurstein, shane, alberto, Lauri Peltonen 2 days ago

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    AFAIK, you cannot declare a public function in an interface. So the code above is not supposed to compile, hence, your question is quite unclear (and it's unclear even without the compilation issue!!). – goodvibration Sep 11 at 14:16

Browse other questions tagged or ask your own question.