typo: rename getWrappedNativeTokenddress to getWrappedNativeTokenAddress

This commit is contained in:
David Racero 2021-05-12 10:23:15 +02:00
parent 6312f9ad64
commit 095d5bff90
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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');