Last active
May 12, 2021 20:32
-
-
Save percybolmer/b6eedbc9f5114fb7cc508a61a3caa0e8 to your computer and use it in GitHub Desktop.
A simple deployment / migration script for a devtoken
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make sure the DevToken contract is included by requireing it. | |
const DevToken = artifacts.require("DevToken"); | |
// THis is an async function, it will accept the Deployer account, the network, and eventual accounts. | |
module.exports = async function (deployer, network, accounts) { | |
// await while we deploy the DevToken | |
await deployer.deploy(DevToken); | |
const devToken = await DevToken.deployed() | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment