123456789101112131415161718192021222324252627282930 |
- // SPDX-License-Identifier: MIT
- pragma solidity ^0.8.20;
- import {ERC20} from "../../token/ERC20/ERC20.sol";
- abstract contract ERC20NoReturnMock is ERC20 {
- function transfer(address to, uint256 amount) public override returns (bool) {
- // forge-lint: disable-next-line(erc20-unchecked-transfer)
- super.transfer(to, amount);
- assembly {
- return(0, 0)
- }
- }
- function transferFrom(address from, address to, uint256 amount) public override returns (bool) {
- // forge-lint: disable-next-line(erc20-unchecked-transfer)
- super.transferFrom(from, to, amount);
- assembly {
- return(0, 0)
- }
- }
- function approve(address spender, uint256 amount) public override returns (bool) {
- super.approve(spender, amount);
- assembly {
- return(0, 0)
- }
- }
- }
|