Reset to original state

This commit is contained in:
Zer0dot 2021-01-10 20:05:34 -05:00
parent 36e5642f24
commit 95691770ab

View File

@ -153,9 +153,7 @@ export const getAllMockedTokens = async () => {
const tokens: MockTokenMap = await Object.keys(TokenContractId).reduce<Promise<MockTokenMap>>( const tokens: MockTokenMap = await Object.keys(TokenContractId).reduce<Promise<MockTokenMap>>(
async (acc, tokenSymbol) => { async (acc, tokenSymbol) => {
const accumulator = await acc; const accumulator = await acc;
console.log("getAllMockedTokens: got accumulator, next token:", tokenSymbol.toUpperCase());
const address = db.get(`${tokenSymbol.toUpperCase()}.${DRE.network.name}`).value().address; const address = db.get(`${tokenSymbol.toUpperCase()}.${DRE.network.name}`).value().address;
console.log("getAllMockedTokens: Initialized address for %s, address: %s", tokenSymbol, address);
accumulator[tokenSymbol] = await getMintableERC20(address); accumulator[tokenSymbol] = await getMintableERC20(address);
return Promise.resolve(acc); return Promise.resolve(acc);
}, },
@ -177,8 +175,6 @@ export const getPairsTokenAggregator = (
const aggregatorAddressIndex = Object.keys(aggregatorsAddresses).findIndex( const aggregatorAddressIndex = Object.keys(aggregatorsAddresses).findIndex(
(value) => value === tokenSymbol (value) => value === tokenSymbol
); );
//console.log("getPairsTokenAggregator: tokenSymbol:", tokenSymbol);
//console.log("getPairsTokenAggregator: aggregatorsAddresses:\n\n", aggregatorsAddresses);
const [, aggregatorAddress] = (Object.entries(aggregatorsAddresses) as [ const [, aggregatorAddress] = (Object.entries(aggregatorsAddresses) as [
string, string,
tEthereumAddress tEthereumAddress