All tests now use account names, and dont use accounts[0] (except ERC… (#1137)
* All tests now use account names, and dont use accounts[0] (except ERC721) * Added account names to some missing contracts.
This commit is contained in:
@ -3,17 +3,14 @@ const { ethGetBalance } = require('../helpers/web3');
|
||||
const TokenDestructible = artifacts.require('TokenDestructible');
|
||||
const StandardTokenMock = artifacts.require('StandardTokenMock');
|
||||
|
||||
contract('TokenDestructible', function (accounts) {
|
||||
contract('TokenDestructible', function ([_, owner]) {
|
||||
let tokenDestructible;
|
||||
let owner;
|
||||
|
||||
beforeEach(async function () {
|
||||
tokenDestructible = await TokenDestructible.new({
|
||||
from: accounts[0],
|
||||
from: owner,
|
||||
value: web3.toWei('10', 'ether'),
|
||||
});
|
||||
|
||||
owner = await tokenDestructible.owner();
|
||||
});
|
||||
|
||||
it('should send balance to owner after destruction', async function () {
|
||||
|
||||
Reference in New Issue
Block a user