After writing the Solidity contracts, we should write the migration scripts. The migration scripts define the contract deployment setup. The migration script for the MSTToken and MSTCrowdsale contract is created in the migrations folder. The migration script is named 2_deployCrowdsale.js, and you can find this file under the migrations folder. We did discuss the migration scripts in Chapter 5, Using Ganache and the Truffle Framework, Writing contract migration scripts section.
The following is the code of the 2_deployCrowdsale.js migration script:
const MSTToken = artifacts.require("MSTToken");
const MSTCrowdsale = artifacts.require("MSTCrowdsale");
var BigNumber = require('big-number');
module.exports = async function(deployer, network, accounts) {
var owner = accounts[0];
var wallet = accounts[9...