Consolidated ERC20 Interface and Implementation Files (#1125)
* Consolidted ERC20 Interface and Implementation Files * Fixed CanReclaimToken's tests to use StandardTokenMock instead of BasicTokenMock * Changed token's variable type in TokenTimelock to ERC20 * Merged the StandardBurnableToken with BurnableToken since it now inherits from StandardToken; Fixed TokenTimelock so it uses SafeERC20 for ERC20 * Fixed variable type for _token in TokenTimelock constructor * Fixed linting warning in BurnableToken * Added back burnFrom tests.
This commit is contained in:
committed by
Francisco Giordano
parent
3d86c58d2c
commit
ef347ffccc
@ -1,12 +1,12 @@
|
||||
const { shouldBehaveLikeBurnableToken } = require('./BurnableToken.behaviour');
|
||||
const BurnableTokenMock = artifacts.require('BurnableTokenMock');
|
||||
|
||||
contract('BurnableToken', function ([_, owner]) {
|
||||
contract('BurnableToken', function ([_, owner, ...otherAccounts]) {
|
||||
const initialBalance = 1000;
|
||||
|
||||
beforeEach(async function () {
|
||||
this.token = await BurnableTokenMock.new(owner, initialBalance, { from: owner });
|
||||
});
|
||||
|
||||
shouldBehaveLikeBurnableToken(owner, initialBalance);
|
||||
shouldBehaveLikeBurnableToken(owner, initialBalance, otherAccounts);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user