ERC20WrapperHarness.sol 707 B

12345678910111213141516171819202122
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.20;
  3. import {ERC20Permit} from "../patched/token/ERC20/extensions/ERC20Permit.sol";
  4. import {ERC20Wrapper, IERC20, ERC20} from "../patched/token/ERC20/extensions/ERC20Wrapper.sol";
  5. contract ERC20WrapperHarness is ERC20Permit, ERC20Wrapper {
  6. constructor(
  7. IERC20 _underlying,
  8. string memory _name,
  9. string memory _symbol
  10. ) ERC20(_name, _symbol) ERC20Permit(_name) ERC20Wrapper(_underlying) {}
  11. function recover(address account) public returns (uint256) {
  12. return _recover(account);
  13. }
  14. function decimals() public view override(ERC20Wrapper, ERC20) returns (uint8) {
  15. return super.decimals();
  16. }
  17. }