Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Last active May 12, 2021 20:32
Show Gist options
  • Save percybolmer/b6eedbc9f5114fb7cc508a61a3caa0e8 to your computer and use it in GitHub Desktop.
Save percybolmer/b6eedbc9f5114fb7cc508a61a3caa0e8 to your computer and use it in GitHub Desktop.
A simple deployment / migration script for a devtoken
// 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