aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler/src/compiler.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-07-16 20:38:27 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-07-16 20:38:27 +0800
commitacff177c547dee049b97e4b051fe22e1efaf992c (patch)
tree4580187592aac7695c1edae15a6f68eea5b1078c /packages/sol-compiler/src/compiler.ts
parentffeb3194a8f5e68c266f0bc6c70c6c9ba0754ec6 (diff)
parent6bdee26c3037733ad198d54c1e88f3c7647ad230 (diff)
downloaddexon-sol-tools-acff177c547dee049b97e4b051fe22e1efaf992c.tar
dexon-sol-tools-acff177c547dee049b97e4b051fe22e1efaf992c.tar.gz
dexon-sol-tools-acff177c547dee049b97e4b051fe22e1efaf992c.tar.bz2
dexon-sol-tools-acff177c547dee049b97e4b051fe22e1efaf992c.tar.lz
dexon-sol-tools-acff177c547dee049b97e4b051fe22e1efaf992c.tar.xz
dexon-sol-tools-acff177c547dee049b97e4b051fe22e1efaf992c.tar.zst
dexon-sol-tools-acff177c547dee049b97e4b051fe22e1efaf992c.zip
Merge branch 'v2-prototype' into feature/order-watcher-v2
Diffstat (limited to 'packages/sol-compiler/src/compiler.ts')
-rw-r--r--packages/sol-compiler/src/compiler.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts
index bb701a8ce..e61c606be 100644
--- a/packages/sol-compiler/src/compiler.ts
+++ b/packages/sol-compiler/src/compiler.ts
@@ -8,11 +8,10 @@ import {
Resolver,
URLResolver,
} from '@0xproject/sol-resolver';
-import { logUtils } from '@0xproject/utils';
+import { fetchAsync, logUtils } from '@0xproject/utils';
import chalk from 'chalk';
import * as ethUtil from 'ethereumjs-util';
import * as fs from 'fs';
-import 'isomorphic-fetch';
import * as _ from 'lodash';
import * as path from 'path';
import * as requireFromString from 'require-from-string';
@@ -149,7 +148,7 @@ export class Compiler {
} else {
logUtils.log(`Downloading ${fullSolcVersion}...`);
const url = `${constants.BASE_COMPILER_URL}${fullSolcVersion}`;
- const response = await fetch(url);
+ const response = await fetchAsync(url);
const SUCCESS_STATUS = 200;
if (response.status !== SUCCESS_STATUS) {
throw new Error(`Failed to load ${fullSolcVersion}`);