mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
typo: rename getWrappedNativeTokenddress to getWrappedNativeTokenAddress
This commit is contained in:
parent
6312f9ad64
commit
095d5bff90
|
@ -113,7 +113,7 @@ export const getWethAddress = async (config: ICommonConfiguration) => {
|
|||
return weth.address;
|
||||
};
|
||||
|
||||
export const getWrappedNativeTokenddress = async (config: ICommonConfiguration) => {
|
||||
export const getWrappedNativeTokenAddress = async (config: ICommonConfiguration) => {
|
||||
const currentNetwork = process.env.MAINNET_FORK === 'true' ? 'main' : DRE.network.name;
|
||||
const wethAddress = getParamPerNetwork(config.WrappedNativeToken, <eNetwork>currentNetwork);
|
||||
if (wethAddress) {
|
||||
|
|
|
@ -2,7 +2,7 @@ import { task } from 'hardhat/config';
|
|||
import {
|
||||
loadPoolConfig,
|
||||
ConfigNames,
|
||||
getWrappedNativeTokenddress,
|
||||
getWrappedNativeTokenAddress,
|
||||
} from '../../helpers/configuration';
|
||||
import { deployWETHGateway } from '../../helpers/contracts-deployments';
|
||||
|
||||
|
@ -14,7 +14,7 @@ task(`full-deploy-weth-gateway`, `Deploys the ${CONTRACT_NAME} contract`)
|
|||
.setAction(async ({ verify, pool }, localBRE) => {
|
||||
await localBRE.run('set-DRE');
|
||||
const poolConfig = loadPoolConfig(pool);
|
||||
const Weth = await getWrappedNativeTokenddress(poolConfig);
|
||||
const Weth = await getWrappedNativeTokenAddress(poolConfig);
|
||||
|
||||
if (!localBRE.network.config.chainId) {
|
||||
throw new Error('INVALID_CHAIN_ID');
|
||||
|
|
Loading…
Reference in New Issue
Block a user