eip20Factory.js 588 B

123456789101112
  1. const EIP20Factory = artifacts.require('EIP20Factory');
  2. contract('EIP20Factory', (accounts) => {
  3. it('Verify a Human Standard Token once deployed using both verification functions.', async () => {
  4. const factory = await EIP20Factory.new();
  5. const newTokenAddr = await factory.createEIP20.call(100000, 'Simon Bucks', 2, 'SBX', { from: accounts[0] });
  6. await factory.createEIP20(100000, 'Simon Bucks', 2, 'SBX', { from: accounts[0] });
  7. const res = await factory.verifyEIP20.call(newTokenAddr, { from: accounts[0] });
  8. assert(res, 'Could not verify the token.');
  9. });
  10. });