mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Slight fix
This commit is contained in:
parent
ccb6e36760
commit
b2123e914c
|
@ -57,7 +57,6 @@ import { MintableDelegationERC20 } from '../types/MintableDelegationERC20';
|
||||||
import { readArtifact as buidlerReadArtifact } from '@nomiclabs/buidler/plugins';
|
import { readArtifact as buidlerReadArtifact } from '@nomiclabs/buidler/plugins';
|
||||||
import { HardhatRuntimeEnvironment } from 'hardhat/types';
|
import { HardhatRuntimeEnvironment } from 'hardhat/types';
|
||||||
import { LendingPoolLibraryAddresses } from '../types/LendingPoolFactory';
|
import { LendingPoolLibraryAddresses } from '../types/LendingPoolFactory';
|
||||||
import { addGas } from '../gas-tracker';
|
|
||||||
|
|
||||||
const readArtifact = async (id: string) => {
|
const readArtifact = async (id: string) => {
|
||||||
if (DRE.network.name === eEthereumNetwork.buidlerevm) {
|
if (DRE.network.name === eEthereumNetwork.buidlerevm) {
|
||||||
|
@ -65,13 +64,14 @@ const readArtifact = async (id: string) => {
|
||||||
}
|
}
|
||||||
return (DRE as HardhatRuntimeEnvironment).artifacts.readArtifact(id);
|
return (DRE as HardhatRuntimeEnvironment).artifacts.readArtifact(id);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const deployLendingPoolAddressesProvider = async (marketId: string, verify?: boolean) =>
|
export const deployLendingPoolAddressesProvider = async (marketId: string, verify?: boolean) =>
|
||||||
withSaveAndVerify(
|
withSaveAndVerify(
|
||||||
await new LendingPoolAddressesProviderFactory(await getFirstSigner()).deploy(marketId),
|
await new LendingPoolAddressesProviderFactory(await getFirstSigner()).deploy(marketId),
|
||||||
eContractid.LendingPoolAddressesProvider,
|
eContractid.LendingPoolAddressesProvider,
|
||||||
[marketId],
|
[marketId],
|
||||||
verify
|
verify
|
||||||
)
|
);
|
||||||
|
|
||||||
export const deployLendingPoolAddressesProviderRegistry = async (verify?: boolean) =>
|
export const deployLendingPoolAddressesProviderRegistry = async (verify?: boolean) =>
|
||||||
withSaveAndVerify(
|
withSaveAndVerify(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user