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 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 that you have read and understand our privacy policy and code of conduct.

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