Files
openzeppelin-contracts/test/token/ERC20/extensions/ERC20Burnable.test.js
Hadrien Croubois c1d9da4052 Use hardhat-exposed to reduce the need for mocks (#3666)
Co-authored-by: Francisco <fg@frang.io>
2023-01-03 14:38:13 +00:00

21 lines
624 B
JavaScript

const { BN } = require('@openzeppelin/test-helpers');
const { shouldBehaveLikeERC20Burnable } = require('./ERC20Burnable.behavior');
const ERC20Burnable = artifacts.require('$ERC20Burnable');
contract('ERC20Burnable', function (accounts) {
const [ owner, ...otherAccounts ] = accounts;
const initialBalance = new BN(1000);
const name = 'My Token';
const symbol = 'MTKN';
beforeEach(async function () {
this.token = await ERC20Burnable.new(name, symbol, { from: owner });
await this.token.$_mint(owner, initialBalance);
});
shouldBehaveLikeERC20Burnable(owner, initialBalance, otherAccounts);
});