Finish sender testing

This commit is contained in:
Mubaris NK 2021-04-16 15:08:16 +05:30
parent 63680f251a
commit 4a9fb6d9dd
No known key found for this signature in database
GPG Key ID: 9AC09AD0F8D68561
2 changed files with 21 additions and 22 deletions

View File

@ -23,20 +23,20 @@ module.exports = {
forkNetwork: "1"
},
networks: {
hardhat: { // mainnet forking
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
blockNumber: 12240294,
},
blockGasLimit: 12000000,
},
// hardhat: { // matic forking
// hardhat: { // mainnet forking
// forking: {
// url: `https://cold-red-river.matic.quiknode.pro/${QUIKNODE_ID}/`,
// blockNumber: 13317966,
// url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
// blockNumber: 12240294,
// },
// blockGasLimit: 12000000,
// },
hardhat: { // matic forking
forking: {
url: `https://cold-red-river.matic.quiknode.pro/${QUIKNODE_ID}/`,
blockNumber: 13317966,
},
blockGasLimit: 12000000,
},
kovan: {
url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`,
accounts: [`0x${PRIVATE_KEY}`]

View File

@ -252,18 +252,17 @@ describe("Migrator", function() {
const receipt = await tx.wait()
})
// it("test settle 3", async function() {
// const tokens = [usdc, usdt, weth, wbtc]
// const amts = [
// ethers.utils.parseUnits('500000', 6),
// ethers.utils.parseUnits('40000', 6),
// ethers.utils.parseEther('1000'),
// ethers.utils.parseUnits('25', 8)
// ]
it("test settle 3", async function() {
const tokens = [weth, wbtc, aave]
const amts = [
ethers.utils.parseEther('2000'),
ethers.utils.parseUnits('25', 8),
ethers.utils.parseEther('80')
]
// const tx = await migrator.settle(tokens, amts)
// const receipt = await tx.wait()
const tx = await migrator.settle(tokens, amts)
const receipt = await tx.wait()
// // console.log(receipt)
// })
// console.log(receipt)
})
})