mirror of
https://github.com/jwinterm/nft-market.git
synced 2026-10-17 05:41:30 +02:00
18 lines
688 B
JavaScript
18 lines
688 B
JavaScript
const ImageContract = artifacts.require("ImageContract");
|
|
const ImageSaleContract = artifacts.require("ImageSaleContract");
|
|
const TokenContract = artifacts.require("TokenContract");
|
|
const TokenSaleContract = artifacts.require("TokenSaleContract");
|
|
|
|
module.exports = async function (deployer) {
|
|
deployer.deploy(ImageContract).then(function() {
|
|
return deployer.deploy(ImageSaleContract, ImageContract.address);
|
|
});
|
|
|
|
deployer.deploy(TokenContract).then(function() {
|
|
var tokenPrice = 1000000000000000; // Token price is 0.001 Ether
|
|
var tokenContractAddress = TokenContract.address;
|
|
return deployer.deploy(TokenSaleContract, tokenContractAddress, tokenPrice);
|
|
});
|
|
|
|
};
|