Skip to content

Instantly share code, notes, and snippets.

@tcichowicz
Last active August 16, 2017 12:08
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 tcichowicz/37027ec28e96c11eb392bc80b6dcb3a2 to your computer and use it in GitHub Desktop.
Save tcichowicz/37027ec28e96c11eb392bc80b6dcb3a2 to your computer and use it in GitHub Desktop.
const EspeoTokenIco = artifacts.require('./EspeoTokenIco.sol');
contract('EspeoTokenIco', accounts => {
it('should have initial supply of 1,000,000 units assigned to funds wallet', async () => {
const fundsWallet = accounts[1];
const espeoToken = await EspeoTokenIco.new(fundsWallet);
const expectedSupply = 1000000 * Math.pow(10, 18);
const totalSupply = await espeoToken.totalSupply();
assert.equal(totalSupply, expectedSupply, 'Total supply mismatch');
const fundsWalletBalance = await espeoToken.balanceOf(fundsWallet);
assert.equal(fundsWalletBalance.toNumber(), expectedSupply, 'Initial funds wallet balance mismatch');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment