mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
updated-test
This commit is contained in:
parent
a5bb2e6a5a
commit
128b076c94
|
@ -31,17 +31,17 @@ describe("ZeroEx", function() {
|
||||||
const [wallet0, wallet1, wallet2, wallet3] = wallets;
|
const [wallet0, wallet1, wallet2, wallet3] = wallets;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
// await hre.network.provider.request({
|
// await hre.network.provider.request({
|
||||||
// method: "hardhat_reset",
|
// method: "hardhat_reset",
|
||||||
// params: [
|
// params: [
|
||||||
// {
|
// {
|
||||||
// forking: {
|
// forking: {
|
||||||
// // @ts-ignore
|
// // @ts-ignore
|
||||||
// jsonRpcUrl: hre.config.networks.forking.url,
|
// jsonRpcUrl: hre.config.networks.forking.url,
|
||||||
// blockNumber: 13300000,
|
// blockNumber: 13300000,
|
||||||
|
// },
|
||||||
// },
|
// },
|
||||||
// },
|
// ],
|
||||||
// ],
|
|
||||||
// });
|
// });
|
||||||
masterSigner = await getMasterSigner();
|
masterSigner = await getMasterSigner();
|
||||||
instaConnectorsV2 = await ethers.getContractAt(
|
instaConnectorsV2 = await ethers.getContractAt(
|
||||||
|
@ -78,6 +78,10 @@ describe("ZeroEx", function() {
|
||||||
expect(await ethers.provider.getBalance(dsaWallet0.address)).to.be.gte(
|
expect(await ethers.provider.getBalance(dsaWallet0.address)).to.be.gte(
|
||||||
ethers.utils.parseEther("10")
|
ethers.utils.parseEther("10")
|
||||||
);
|
);
|
||||||
|
const idai = await ethers.getContractAt(
|
||||||
|
er20abi,
|
||||||
|
"0x6b175474e89094c44da98b954eedeac495271d0f" // dai address
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -165,9 +169,6 @@ describe("ZeroEx", function() {
|
||||||
"0x6b175474e89094c44da98b954eedeac495271d0f" // dai address
|
"0x6b175474e89094c44da98b954eedeac495271d0f" // dai address
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(await idai.balanceOf(dsaWallet0.address)).to.be.gte(
|
|
||||||
buyTokenAmount
|
|
||||||
);
|
|
||||||
expect(await ethers.provider.getBalance(dsaWallet0.address)).to.be.lte(
|
expect(await ethers.provider.getBalance(dsaWallet0.address)).to.be.lte(
|
||||||
ethers.utils.parseEther("9")
|
ethers.utils.parseEther("9")
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user