Skip to content

Commit

Permalink
refactor: simplify constructor parameters in MockERC20 contract
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Jan 2, 2025
1 parent 6b08a4d commit 79a071a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions contracts/test/mocks/MockERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ pragma solidity ^0.8.28;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract MockERC20 is ERC20 {
constructor(
string memory name,
string memory symbol,
uint8 decimals
) ERC20(name, symbol) {
constructor(string memory name, string memory symbol, uint8 decimals) ERC20(name, symbol) {
_mint(msg.sender, 10 ** 9 * 10 ** uint256(decimals)); // Mint 1 billion tokens to deployer
}

Expand Down

0 comments on commit 79a071a

Please sign in to comment.