Update how constants is used.

This commit is contained in:
Nicolás Venturo
2019-01-11 16:30:52 -03:00
parent 53767a0963
commit 8c5d65de2f
19 changed files with 69 additions and 51 deletions

View File

@ -1,4 +1,5 @@
const { constants, expectEvent } = require('openzeppelin-test-helpers');
const { ZERO_ADDRESS } = constants;
const SimpleToken = artifacts.require('SimpleToken');
@ -26,7 +27,7 @@ contract('SimpleToken', function ([_, creator]) {
creatorBalance.should.be.bignumber.equal(totalSupply);
await expectEvent.inConstruction(this.token, 'Transfer', {
from: constants.ZERO_ADDRESS,
from: ZERO_ADDRESS,
to: creator,
value: totalSupply,
});