Skip to content

Commit

Permalink
Merge pull request #48 from aviggiano/decimals
Browse files Browse the repository at this point in the history
Fix TestERC20Token decimals type (uint256->uint8)
  • Loading branch information
bsamuels453 authored Nov 5, 2023
2 parents e645e8c + 125fa41 commit 13a8724
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions contracts/ERC4626/util/TestERC20Token.sol
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 13a8724

Please sign in to comment.