Add a leading underscore to internal and private functions. (#1257)
* Add a leading underscore to internal and private functions. Fixes #1176 * Remove super * update the ERC721 changes * add missing underscore after merge * Fix mock
This commit is contained in:
committed by
Francisco Giordano
parent
fbfd1fed45
commit
b0f20d43df
@ -76,13 +76,13 @@ contract('ERC721', function (accounts) {
|
||||
describe('removeTokenFrom', function () {
|
||||
it('reverts if the correct owner is not passed', async function () {
|
||||
await assertRevert(
|
||||
this.token._removeTokenFrom(anyone, firstTokenId, { from: creator })
|
||||
this.token.removeTokenFrom(anyone, firstTokenId, { from: creator })
|
||||
);
|
||||
});
|
||||
|
||||
context('once removed', function () {
|
||||
beforeEach(async function () {
|
||||
await this.token._removeTokenFrom(creator, firstTokenId, { from: creator });
|
||||
await this.token.removeTokenFrom(creator, firstTokenId, { from: creator });
|
||||
});
|
||||
|
||||
it('has been removed', async function () {
|
||||
|
||||
Reference in New Issue
Block a user