Skip to content

Commit

Permalink
swap for address1, not owner
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Sep 8, 2022
1 parent ef968d1 commit 9d1e0b5
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions test/SoulFactory.test.ts
Expand Up @@ -69,19 +69,27 @@ describe("Soul Factory", () => {
owner
);

// we get stable coins for address1
await uniswapRouter.swapExactETHForTokens(
0,
[WETH_RINKEBY, DAI_RINKEBY],
owner.address,
[WETH_RINKEBY, USDC_RINKEBY],
address1.address,
Math.floor(Date.now() / 1000) + 60 * 15, // 15 minutes from the current Unix time
{
value: ethers.utils.parseEther("10")
}
);

// minting some stable and utility coins for the tests
/* await stableCoin.connect(owner).mint();
await stableCoin.connect(address1).mint(); */
// we get utility tokens for address1
await uniswapRouter.swapExactETHForTokens(
0,
[WETH_RINKEBY, DAI_RINKEBY],
address1.address,
Math.floor(Date.now() / 1000) + 60 * 15, // 15 minutes from the current Unix time
{
value: ethers.utils.parseEther("10")
}
);
});

describe("pause", () => {
Expand Down

0 comments on commit 9d1e0b5

Please sign in to comment.