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)
1
  • 1
    Yes, you can... Commented Jan 12, 2021 at 6:10

1 Answer 1

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 and acknowledge you have read our privacy policy.

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