Skip to content
Discussion options

You must be logged in to vote

Actually in the latest versions of open zeppelin, they have removed all 4 arguments from constructor:
The latest version of ERC20Mock: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/mocks/token/ERC20Mock.sol
The previous version:

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../token/ERC20/ERC20.sol";

// mock class using ERC20
contract ERC20Mock is ERC20 {
    constructor(
        string memory name,
        string memory symbol,
        address initialAccount,
        uint256 initialBalance
    ) payable ERC20(name, symbol) {
        _mint(initialAccount, initialBalance);
    }

    function mint(address account, uint256 amount) public {…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@SquilliamX
Comment options

@shikhar229169
Comment options

Answer selected by SquilliamX
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@AllenGeorge08
Comment options

@EngrPips
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants