Skip to content

Instantly share code, notes, and snippets.

@Fallenstedt
Created September 5, 2018 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fallenstedt/2412578d7d7bb6a0f3e7311cc9151201 to your computer and use it in GitHub Desktop.
Save Fallenstedt/2412578d7d7bb6a0f3e7311cc9151201 to your computer and use it in GitHub Desktop.
TestCampaignToken
const CampaignToken = artifacts.require("CampaignToken");
contract("CampaignToken", async accounts => {
it("should deploy with an inital supply", async () => {
const instance = await CampaignToken.deployed();
const totalSupply = await instance.totalSupply();
console.log("totalSupply", totalSupply);
assert.equal(10000, totalSupply, "balance is not equal");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment