Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function createNewContract(string memory name, string memory symbol, uint256 _maxSupply)
- public onlyOwner returns (address) {
- EthnicXCoin ethnicX = new EthnicXCoin(name, symbol, _maxSupply, address(store));
- ethnicXQueue.push(address(ethnicX));
- emit etnXCreated(address(ethnicX));
- if (i == 0)
- i = _activateNextContract(i);
- return (address(ethnicX));
- }
- (async () => {
- var minterInstance = await minter.deployed();
- var etnXinstance =
- await etnX.at(await
- minterInstance.createNewContract.call("x","x",100000));
- console.log(await etnXinstance.address);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement