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,
|
getFirstSigner,
|
||||||
getLendingPoolAddressesProviderRegistry,
|
getLendingPoolAddressesProviderRegistry,
|
||||||
} from '../../helpers/contracts-getters';
|
} from '../../helpers/contracts-getters';
|
||||||
import { isAddress } from 'ethers/lib/utils';
|
import { formatEther, isAddress, parseEther } from 'ethers/lib/utils';
|
||||||
import { isZeroAddress } from 'ethereumjs-util';
|
import { isZeroAddress } from 'ethereumjs-util';
|
||||||
import { Signer } from 'ethers';
|
import { Signer } from 'ethers';
|
||||||
|
import { parse } from 'path';
|
||||||
|
|
||||||
task(
|
task(
|
||||||
'full:deploy-address-provider',
|
'full:deploy-address-provider',
|
||||||
|
@ -59,6 +60,8 @@ task(
|
||||||
params: [providerRegistryOwner],
|
params: [providerRegistryOwner],
|
||||||
});
|
});
|
||||||
signer = DRE.ethers.provider.getSigner(providerRegistryOwner);
|
signer = DRE.ethers.provider.getSigner(providerRegistryOwner);
|
||||||
|
const firstAccount = await getFirstSigner();
|
||||||
|
await firstAccount.sendTransaction({ value: parseEther('10'), to: providerRegistryOwner });
|
||||||
} else {
|
} else {
|
||||||
signer = await getFirstSigner();
|
signer = await getFirstSigner();
|
||||||
const deployerAddress = await signer.getAddress();
|
const deployerAddress = await signer.getAddress();
|
||||||
|
@ -69,7 +72,6 @@ task(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 1. Address Provider Registry instance
|
// 1. Address Provider Registry instance
|
||||||
|
|
||||||
const addressesProviderRegistry = (
|
const addressesProviderRegistry = (
|
||||||
await getLendingPoolAddressesProviderRegistry(providerRegistryAddress)
|
await getLendingPoolAddressesProviderRegistry(providerRegistryAddress)
|
||||||
).connect(signer);
|
).connect(signer);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user