mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Fix CI task. Move initialize tokens outside of full tasks.
This commit is contained in:
parent
f5d0ce14bb
commit
04c49117b8
|
@ -16,9 +16,10 @@ import {
|
|||
getFirstSigner,
|
||||
getLendingPoolAddressesProviderRegistry,
|
||||
} from '../../helpers/contracts-getters';
|
||||
import { isAddress } from 'ethers/lib/utils';
|
||||
import { formatEther, isAddress, parseEther } from 'ethers/lib/utils';
|
||||
import { isZeroAddress } from 'ethereumjs-util';
|
||||
import { Signer } from 'ethers';
|
||||
import { parse } from 'path';
|
||||
|
||||
task(
|
||||
'full:deploy-address-provider',
|
||||
|
@ -59,6 +60,8 @@ task(
|
|||
params: [providerRegistryOwner],
|
||||
});
|
||||
signer = DRE.ethers.provider.getSigner(providerRegistryOwner);
|
||||
const firstAccount = await getFirstSigner();
|
||||
await firstAccount.sendTransaction({ value: parseEther('10'), to: providerRegistryOwner });
|
||||
} else {
|
||||
signer = await getFirstSigner();
|
||||
const deployerAddress = await signer.getAddress();
|
||||
|
@ -69,7 +72,6 @@ task(
|
|||
}
|
||||
}
|
||||
// 1. Address Provider Registry instance
|
||||
|
||||
const addressesProviderRegistry = (
|
||||
await getLendingPoolAddressesProviderRegistry(providerRegistryAddress)
|
||||
).connect(signer);
|
||||
|
|
Loading…
Reference in New Issue
Block a user