dc-protocol
Version:
Start ganache and deploy our contracts
9 lines (7 loc) • 348 B
JavaScript
/* global artifacts web3 */
const Platform = artifacts.require('../contracts/platform/Platform.sol')
const MyDappGame = artifacts.require('../contracts/game/MyDappGame.sol')
module.exports = async (deployer, network, accounts) => {
const platform = await Platform.deployed()
await platform.addGame(MyDappGame.address, {from: accounts[0]})
}