This commit is contained in:
elegant651
2020-03-24 14:39:38 +09:00
commit 6e0388b653
83 changed files with 92480 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
const TodoFeed = artifacts.require('./TodoFeed.sol')
const fs = require('fs')
module.exports = function (deployer) {
deployer.deploy(TodoFeed)
.then(() => {
if (TodoFeed._json) {
fs.writeFile(
'deployedABI',
JSON.stringify(TodoFeed._json.abi, 2),
(err) => {
if (err) throw err
console.log(`The abi of ${TodoFeed._json.contractName} is recorded on deployedABI file`)
})
}
fs.writeFile(
'deployedAddress',
TodoFeed.address,
(err) => {
if (err) throw err
console.log(`The deployed contract address * ${TodoFeed.address} * is recorded on deployedAddress file`)
})
})
}