Implement recommendations from 5.0 audit Phase 1A (#4398)

Co-authored-by: Francisco Giordano <fg@frang.io>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
Ernesto García
2023-07-03 12:02:06 -06:00
committed by GitHub
parent 06861dce54
commit bb64458928
38 changed files with 779 additions and 666 deletions

View File

@ -12,14 +12,14 @@ contract(['ERC1155URIStorage'], function (accounts) {
const baseUri = 'https://token.com/';
const tokenId = new BN('1');
const amount = new BN('3000');
const value = new BN('3000');
describe('with base uri set', function () {
beforeEach(async function () {
this.token = await ERC1155URIStorage.new(erc1155Uri);
await this.token.$_setBaseURI(baseUri);
await this.token.$_mint(holder, tokenId, amount, '0x');
await this.token.$_mint(holder, tokenId, value, '0x');
});
it('can request the token uri, returning the erc1155 uri if no token uri was set', async function () {
@ -44,7 +44,7 @@ contract(['ERC1155URIStorage'], function (accounts) {
beforeEach(async function () {
this.token = await ERC1155URIStorage.new('');
await this.token.$_mint(holder, tokenId, amount, '0x');
await this.token.$_mint(holder, tokenId, value, '0x');
});
it('can request the token uri, returning an empty string if no token uri was set', async function () {