ERC1363NoReturnMock.sol 903 B

123456789101112131415161718192021222324252627282930313233
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.20;
  3. import {ERC1363} from "../../token/ERC20/extensions/ERC1363.sol";
  4. abstract contract ERC1363NoReturnMock is ERC1363 {
  5. function transferAndCall(address to, uint256 value, bytes memory data) public override returns (bool) {
  6. super.transferAndCall(to, value, data);
  7. assembly {
  8. return(0, 0)
  9. }
  10. }
  11. function transferFromAndCall(
  12. address from,
  13. address to,
  14. uint256 value,
  15. bytes memory data
  16. ) public override returns (bool) {
  17. super.transferFromAndCall(from, to, value, data);
  18. assembly {
  19. return(0, 0)
  20. }
  21. }
  22. function approveAndCall(address spender, uint256 value, bytes memory data) public override returns (bool) {
  23. super.approveAndCall(spender, value, data);
  24. assembly {
  25. return(0, 0)
  26. }
  27. }
  28. }