From 80d09848b36462f32faf88902c6e1fa8d725eb58 Mon Sep 17 00:00:00 2001 From: David Racero Date: Tue, 15 Sep 2020 13:25:27 +0200 Subject: [PATCH] Prevent buidler.config.ts to load constants and not depend from types, to allow clean repository to compile and generate types. --- buidler.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buidler.config.ts b/buidler.config.ts index 38e2ac92..85e27631 100644 --- a/buidler.config.ts +++ b/buidler.config.ts @@ -2,7 +2,6 @@ import {usePlugin, BuidlerConfig} from '@nomiclabs/buidler/config'; // @ts-ignore import {accounts} from './test-wallets.js'; import {eEthereumNetwork} from './helpers/types'; -import {BUIDLEREVM_CHAINID, COVERAGE_CHAINID} from './helpers/constants'; usePlugin('@nomiclabs/buidler-ethers'); usePlugin('buidler-typechain'); @@ -10,7 +9,8 @@ usePlugin('solidity-coverage'); usePlugin('@nomiclabs/buidler-waffle'); usePlugin('@nomiclabs/buidler-etherscan'); //usePlugin('buidler-gas-reporter'); - +const BUIDLEREVM_CHAINID = 31337; +const COVERAGE_CHAINID = 1337; const DEFAULT_BLOCK_GAS_LIMIT = 10000000; const DEFAULT_GAS_PRICE = 10; const HARDFORK = 'istanbul';