0

Can I overload and use standard ERC-2O methods?

For example:

  • Standard function : transfer(address to, uint tokens) public returns (bool success)
  • Overload function : transfer(address to, uint tokens, uint param1, uint256 param2)
  • standard function: transferFrom(address from, address to, uint tokens) public returns (bool success)
  • Overload function: transferFrom(address from, address to, uint tokens, uint param1, uint256 param2) public returns (bool success)
0

Yes you can. You can add any extra functionality you want, as long as the required functions with the correct signature are present.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.