getter added for an array of tokens held by an owner (#1522)
* signing prefix added
* Minor improvement
* Tests changed
* Successfully tested
* Minor improvements
* Minor improvements
* Revert "Dangling commas are now required. (#1359)"
This reverts commit a6889776f4.
* updates
* fixes #1404
* approve failing test
* suggested changes done
* ISafeERC20 removed
* conflict fixes
* fixes #1512
* Update test/token/ERC721/ERC721Full.test.js
Co-Authored-By: Aniket-Engg <30843294+Aniket-Engg@users.noreply.github.com>
This commit is contained in:
committed by
Francisco Giordano
parent
b7d56d5471
commit
5caecf548c
@ -138,6 +138,15 @@ contract('ERC721Full', function ([
|
||||
});
|
||||
});
|
||||
|
||||
describe('tokensOfOwner', function () {
|
||||
it('returns total tokens of owner', async function () {
|
||||
const tokenIds = await this.token.tokensOfOwner(owner);
|
||||
tokenIds.length.should.equal(2);
|
||||
tokenIds[0].should.be.bignumber.equal(firstTokenId);
|
||||
tokenIds[1].should.be.bignumber.equal(secondTokenId);
|
||||
});
|
||||
});
|
||||
|
||||
describe('totalSupply', function () {
|
||||
it('returns total token supply', async function () {
|
||||
(await this.token.totalSupply()).should.be.bignumber.equal(2);
|
||||
|
||||
Reference in New Issue
Block a user