//cmd
truffle migrate --resettruffle exec scripts/issue-token.js
//logs
Tokens issued!
------------------------
//scripts/issue-token.js
const TokenFarm = artifacts.require('TokenFarm')
module.exports = async function (callback) {
let tokenFarm = await TokenFarm.deployed()
await tokenFarm.issueTokens()
console.log("Tokens issued!")
callback()
}
reference:
No comments:
Post a Comment