Using DSA address in L1 testcases

This commit is contained in:
Thrilok Kumar 2021-04-16 04:11:59 +05:30
parent d3315d0f25
commit 617f0ebd68

View File

@ -121,15 +121,19 @@ describe("Migrator", function() {
}) })
it("test migrate", async function() { it("test migrate", async function() {
const sourceAddr = '0x42c7788dd1cef71cf04ae4d6bca37d129c27e001'
const sourceAddr = '0x05A14F14E7a435542468D6F4d408D6F67303D769'
await master.sendTransaction({
to: sourceAddr,
value: ethers.utils.parseEther("1")
});
const rawData = { const rawData = {
targetDsa: sourceAddr, targetDsa: "0x150Acc42e6751776c9E784EfF830cB4f35aE98f3",
supplyTokens: [weth], supplyTokens: [weth],
borrowTokens: [usdc], borrowTokens: [usdt],
supplyAmts: [ethers.utils.parseEther('60')], supplyAmts: [ethers.utils.parseEther('60')],
variableBorrowAmts: [ethers.utils.parseUnits('10000', 6)], variableBorrowAmts: [ethers.utils.parseUnits('10000', 6)],
stableBorrowAmts: [ethers.utils.parseUnits('10000', 6)] stableBorrowAmts: [0]
} }
await hre.network.provider.request({ await hre.network.provider.request({