need a little help. I'm frustrated with this.
here's my sol. very simple
pragma solidity ^0.8.10;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
contract EkoToken is ERC20 {
constructor(uint _initialSupply) ERC20("EkoToken", "EKOT") public {
_mint(msg.sender, _initialSupply * (10 ** decimals()));
}
}
here's my 2_deploy_contracts.js
const EkoToken = artifacts.require("EkoToken");
module.exports = function (deployer) {
deployer.deploy(EkoToken, 1000000);
};
how is it when I deploy this using truffle migrate, I have this error
Error: *** Deployment Failed ***
"EkoToken" -- Invalid number of parameters for "undefined". Got 2 expected 1!.