diff --git a/scripts/deployMock.ts b/scripts/deployMock.ts index f8266d3..660c10e 100644 --- a/scripts/deployMock.ts +++ b/scripts/deployMock.ts @@ -11,6 +11,7 @@ async function main() { /// @dev The returned contract instance that will be deployed via the deploy function in utils. let MockERC20: Contract; let MockERC721: Contract; + let MockERC1155: Contract; /// @dev will throw an error if any of the accounts was not set up correctly. try { @@ -27,6 +28,7 @@ async function main() { // We are deploying both contracts to test the user flux with the entire functionality. MockERC20 = await deploy("MockERC20", signers[0]); MockERC721 = await deploy("MockERC721", signers[0]); + MockERC1155 = await deploy("MockERC1155", signers[0]); // @dev Log Contract address and the Tx hash which can be searched on Etherscan (or any other block explorer). console.log( @@ -43,13 +45,22 @@ async function main() { MockERC721.deployTransaction.hash, ); + console.log( + "\nContract %s \nDeployed to %s \nAt Tx %s\n", + "MockERC1155", + MockERC1155.address, + MockERC1155.deployTransaction.hash, + ); + /// @dev Store the contract addresses in the .env file. await storeEnv(MockERC20.address, "ERC20_ADDRESS", true); await storeEnv(MockERC721.address, "ERC721_ADDRESS", true); + await storeEnv(MockERC1155.address, "ERC1155_ADDRESS", true); /// @dev Awaits for the transaction to be mined. await MockERC20.deployed(); await MockERC721.deployed(); + await MockERC1155.deployed(); } main().catch((error) => {