Skip to content

Commit

Permalink
fix: merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Westlad committed Jan 21, 2022
1 parent 6f12652 commit e278868
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nightfall-deployer/migrations/4_test_tokens_migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ module.exports = function(deployer, _, accounts) {
await deployer.deploy(ERC20Mock, 1001010000000000); // initialSupply

const ERC20deployed = await ERC20Mock.deployed();
const ERC721deployed = await ERC721Mock.deployed();
const ERC1155deployed = await ERC1155Mock.deployed();
// For ping pong tests
for (const address of UserEthereumAddresses) {
await ERC20deployed.transfer(address, 1000000);
}
if (!config.ETH_ADDRESS) {// indicates we're running a wallet test that uses hardcoded addresses
// For e2e tests
await deployer.deploy(ERC721Mock);
await deployer.deploy(ERC1155Mock);
const ERC721deployed = await ERC721Mock.deployed();
const ERC1155deployed = await ERC1155Mock.deployed();

for (let i=0; i < nERC721; i++){
for (const address of UserEthereumAddresses) {
await ERC721deployed.awardItem(address, `https://erc721mock/item-id-${i}.json`);
Expand Down

0 comments on commit e278868

Please sign in to comment.