From 125fa4135c8ad5e7599d1bf2dd2aa055d35a1ab6 Mon Sep 17 00:00:00 2001 From: Antonio Guilherme Ferreira Viggiano Date: Sat, 4 Nov 2023 18:48:08 -0300 Subject: [PATCH] Fix TestERC20Token decimals type (uint256->uint8) --- contracts/ERC4626/util/TestERC20Token.sol | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/contracts/ERC4626/util/TestERC20Token.sol b/contracts/ERC4626/util/TestERC20Token.sol index 1072f22..8b58fb8 100644 --- a/contracts/ERC4626/util/TestERC20Token.sol +++ b/contracts/ERC4626/util/TestERC20Token.sol @@ -1,21 +1,16 @@ pragma solidity ^0.8.0; -contract TestERC20Token { - event Transfer(address indexed from, address indexed to, uint256 amount); - event Approval( - address indexed owner, - address indexed spender, - uint256 amount - ); +import {IERC20} from "../../util/IERC20.sol"; +contract TestERC20Token is IERC20 { string public name; string public symbol; - uint256 public decimals; + uint8 public decimals; uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; - constructor(string memory _name, string memory _symbol, uint256 _decimals) { + constructor(string memory _name, string memory _symbol, uint8 _decimals) { name = _name; symbol = _symbol; decimals = _decimals;