29 lines
722 B
Solidity
29 lines
722 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.19;
|
|
|
|
import "../../token/ERC20/ERC20.sol";
|
|
|
|
abstract contract ERC20NoReturnMock is ERC20 {
|
|
function transfer(address to, uint256 amount) public override returns (bool) {
|
|
super.transfer(to, amount);
|
|
assembly {
|
|
return(0, 0)
|
|
}
|
|
}
|
|
|
|
function transferFrom(address from, address to, uint256 amount) public override returns (bool) {
|
|
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)
|
|
}
|
|
}
|
|
}
|