From 04c49117b8667fade25eb2c4be0e17d081683284 Mon Sep 17 00:00:00 2001 From: David Racero Date: Wed, 2 Dec 2020 09:57:47 +0100 Subject: [PATCH] Fix CI task. Move initialize tokens outside of full tasks. --- tasks/full/1_address_provider.ts | 6 ++++-- tasks/{full => misc}/initialize-tokens.ts | 0 2 files changed, 4 insertions(+), 2 deletions(-) rename tasks/{full => misc}/initialize-tokens.ts (100%) diff --git a/tasks/full/1_address_provider.ts b/tasks/full/1_address_provider.ts index 29b90af3..eddc17f8 100644 --- a/tasks/full/1_address_provider.ts +++ b/tasks/full/1_address_provider.ts @@ -16,9 +16,10 @@ import { getFirstSigner, getLendingPoolAddressesProviderRegistry, } from '../../helpers/contracts-getters'; -import { isAddress } from 'ethers/lib/utils'; +import { formatEther, isAddress, parseEther } from 'ethers/lib/utils'; import { isZeroAddress } from 'ethereumjs-util'; import { Signer } from 'ethers'; +import { parse } from 'path'; task( 'full:deploy-address-provider', @@ -59,6 +60,8 @@ task( params: [providerRegistryOwner], }); signer = DRE.ethers.provider.getSigner(providerRegistryOwner); + const firstAccount = await getFirstSigner(); + await firstAccount.sendTransaction({ value: parseEther('10'), to: providerRegistryOwner }); } else { signer = await getFirstSigner(); const deployerAddress = await signer.getAddress(); @@ -69,7 +72,6 @@ task( } } // 1. Address Provider Registry instance - const addressesProviderRegistry = ( await getLendingPoolAddressesProviderRegistry(providerRegistryAddress) ).connect(signer); diff --git a/tasks/full/initialize-tokens.ts b/tasks/misc/initialize-tokens.ts similarity index 100% rename from tasks/full/initialize-tokens.ts rename to tasks/misc/initialize-tokens.ts