diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-16 20:38:51 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-16 20:38:51 +0800 |
commit | f9bcf936edbb74acce145af94d23b4945e699f63 (patch) | |
tree | faeacf408e908159f923bae70a4d67e947aba458 /packages/sol-compiler/src/compiler.ts | |
parent | 658214a2e24d3f50aacbc078317358d510e9c351 (diff) | |
parent | acff177c547dee049b97e4b051fe22e1efaf992c (diff) | |
download | dexon-sol-tools-f9bcf936edbb74acce145af94d23b4945e699f63.tar dexon-sol-tools-f9bcf936edbb74acce145af94d23b4945e699f63.tar.gz dexon-sol-tools-f9bcf936edbb74acce145af94d23b4945e699f63.tar.bz2 dexon-sol-tools-f9bcf936edbb74acce145af94d23b4945e699f63.tar.lz dexon-sol-tools-f9bcf936edbb74acce145af94d23b4945e699f63.tar.xz dexon-sol-tools-f9bcf936edbb74acce145af94d23b4945e699f63.tar.zst dexon-sol-tools-f9bcf936edbb74acce145af94d23b4945e699f63.zip |
Merge branch 'feature/order-watcher-v2' into feature/order-watcher-erc721-tests
Diffstat (limited to 'packages/sol-compiler/src/compiler.ts')
-rw-r--r-- | packages/sol-compiler/src/compiler.ts | 5 |
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}`); |