Remove Minted and TokensBurned events (#1305)
* Remove the Minted event * Remove the TokensBurned event * Remove unused
This commit is contained in:
committed by
Francisco Giordano
parent
6c4c8989b3
commit
fa49e5189d
@ -28,12 +28,6 @@ function shouldBehaveLikeERC20Burnable (owner, initialBalance, [burner]) {
|
||||
(await this.token.balanceOf(owner)).should.be.bignumber.equal(initialBalance - amount);
|
||||
});
|
||||
|
||||
it('emits a burn event', async function () {
|
||||
const event = expectEvent.inLogs(this.logs, 'TokensBurned');
|
||||
event.args.burner.should.equal(owner);
|
||||
event.args.value.should.be.bignumber.equal(amount);
|
||||
});
|
||||
|
||||
it('emits a transfer event', async function () {
|
||||
const event = expectEvent.inLogs(this.logs, 'Transfer');
|
||||
event.args.from.should.equal(owner);
|
||||
@ -79,12 +73,6 @@ function shouldBehaveLikeERC20Burnable (owner, initialBalance, [burner]) {
|
||||
(await this.token.allowance(owner, burner)).should.be.bignumber.equal(originalAllowance - amount);
|
||||
});
|
||||
|
||||
it('emits a burn event', async function () {
|
||||
const event = expectEvent.inLogs(this.logs, 'TokensBurned');
|
||||
event.args.burner.should.equal(owner);
|
||||
event.args.value.should.be.bignumber.equal(amount);
|
||||
});
|
||||
|
||||
it('emits a transfer event', async function () {
|
||||
const event = expectEvent.inLogs(this.logs, 'Transfer');
|
||||
event.args.from.should.equal(owner);
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
const { expectThrow } = require('../../helpers/expectThrow');
|
||||
const expectEvent = require('../../helpers/expectEvent');
|
||||
|
||||
const BigNumber = web3.BigNumber;
|
||||
|
||||
@ -16,8 +15,8 @@ function shouldBehaveLikeERC20Capped (minter, [anyone], cap) {
|
||||
});
|
||||
|
||||
it('should mint when amount is less than cap', async function () {
|
||||
const { logs } = await this.token.mint(anyone, cap.sub(1), { from });
|
||||
expectEvent.inLogs(logs, 'Minted');
|
||||
await this.token.mint(anyone, cap.sub(1), { from });
|
||||
(await this.token.totalSupply()).should.be.bignumber.equal(cap.sub(1));
|
||||
});
|
||||
|
||||
it('should fail to mint if the ammount exceeds the cap', async function () {
|
||||
|
||||
@ -104,11 +104,6 @@ function shouldBehaveLikeERC20Mintable (minter, [anyone]) {
|
||||
});
|
||||
|
||||
it('emits a mint and a transfer event', async function () {
|
||||
const mintEvent = expectEvent.inLogs(this.logs, 'Minted', {
|
||||
to: anyone,
|
||||
});
|
||||
mintEvent.args.amount.should.be.bignumber.equal(amount);
|
||||
|
||||
const transferEvent = expectEvent.inLogs(this.logs, 'Transfer', {
|
||||
from: ZERO_ADDRESS,
|
||||
to: anyone,
|
||||
|
||||
@ -47,11 +47,6 @@ function shouldBehaveLikeMintAndBurnERC721 (
|
||||
to: newOwner,
|
||||
});
|
||||
logs[0].args.tokenId.should.be.bignumber.equal(thirdTokenId);
|
||||
|
||||
await expectEvent.inLogs(logs, 'Minted', {
|
||||
to: newOwner,
|
||||
});
|
||||
logs[1].args.tokenId.should.be.bignumber.equal(thirdTokenId);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user