text: var Metadata = artifacts.require('./Metadata.sol')
  var Token = artifacts.require('./RainbowCoin.sol')
  
  let _ = '        '
  
  module.exports = (deployer, helper, accounts) => {
  
    deployer.then(async () => {
      try {
        // Deploy Metadata.sol
        await deployer.deploy(Metadata);
        let metadata = await Metadata.deployed();
        console.log(_ + 'Metadata deployed at: ' + metadata.address);
  
        // Deploy RainbowCoin.sol
        await deployer.deploy(Token, 'RainbowCoin', 'RGB', metadata.address);
  
        let token = await Token.deployed();
        console.log(_ + 'RainbowCoin deployed at: ' + token.address)
  
      } catch (error) {
        console.log(error)
      }
    })
  }
  