diff --git a/hardhat.config.js b/hardhat.config.js index e017767..eaa5071 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -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}`] diff --git a/test/migrator_l1.test.js b/test/migrator_l1.test.js index 05e9773..c2bce78 100644 --- a/test/migrator_l1.test.js +++ b/test/migrator_l1.test.js @@ -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) + }) }) \ No newline at end of file