* Merge ERC20Detailed into ERC20, make derived contracts abstract * Fix Create2 tests * Fix failing test * Default decimals to 18 * Add tests for setupDecimals * Add changelog entry * Update CHANGELOG.md * Update CHANGELOG.md * Replace isConstructor for !isContract * Update CHANGELOG.md Co-Authored-By: Francisco Giordano <frangio.1@gmail.com> Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
22 lines
687 B
JavaScript
22 lines
687 B
JavaScript
const { accounts, contract } = require('@openzeppelin/test-environment');
|
|
|
|
const { BN } = require('@openzeppelin/test-helpers');
|
|
|
|
const { shouldBehaveLikeERC20Burnable } = require('./behaviors/ERC20Burnable.behavior');
|
|
const ERC20BurnableMock = contract.fromArtifact('ERC20BurnableMock');
|
|
|
|
describe('ERC20Burnable', function () {
|
|
const [ owner, ...otherAccounts ] = accounts;
|
|
|
|
const initialBalance = new BN(1000);
|
|
|
|
const name = 'My Token';
|
|
const symbol = 'MTKN';
|
|
|
|
beforeEach(async function () {
|
|
this.token = await ERC20BurnableMock.new(name, symbol, owner, initialBalance, { from: owner });
|
|
});
|
|
|
|
shouldBehaveLikeERC20Burnable(owner, initialBalance, otherAccounts);
|
|
});
|