Fix import for infra test environment (#399)

pull/402/head
Nam Chu Hoai 3 years ago committed by GitHub
parent f7e76f97e7
commit 5f549bbaad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      typescript/infra/config/environments/test/index.ts

@ -17,6 +17,7 @@ export const environment: CoreEnvironmentConfig<TestNetworks> = {
// NOTE: Does not work from hardhat.config.ts
getMultiProvider: async () => {
const hre = await import('hardhat');
await import('@nomiclabs/hardhat-ethers');
const [signer] = await hre.ethers.getSigners();
return utils.getMultiProviderFromConfigAndSigner(testConfigs, signer);
},

Loading…
Cancel
Save